THE GAME HAS CHANGED

Introducing Infoblox Universal DDI ManagementTM

Watch the launch to discover the new era of management for critical network services. Watch Now

API & Integration, DevOps,NetOps,SecOps

Reply

Adding two A record entres for the same ip overwrites first

New Member
Posts: 2
2849     0

Were trying to programtically  add add 2 host entreois for the same IP using

record = objects.ARecord.create(conn, view=view, name=my_host, ip=my_ip, check_if_exists=True,
update_if_exists=True)

Howeverm the second entry always seems to overwrite /. modify the first, rather than adding an additional entry as expected. 
so running the abobve twice with my_host=test and my_host=test1 and the same ip, only result with the test1 enbtry not both A records as expected. Am I doing soimething wrong  here ? 

DnsView=Internal address=1.1.1.2: fqdn: from=test.domain.com to=test1.domain.com

Re: Adding two A record entres for the same ip overwrites first

Adviser
Posts: 181
2849     0

Hi,

 

Can you try it without the update_if_exists parameter?

 

record = objects.ARecord.create(conn, view=view, name=my_host, ip=my_ip)

Regards,

Krishna Vasudevan

Re: Adding two A record entres for the same ip overwrites first

New Member
Posts: 2
2849     0

In this case, the record isnt updated, but the second record is no longer added - with debug added I get the following
INFO:infoblox_client.objects:Infoblox record:a already exists: ARecord: ipv4addr="1.1.1.4"

Showing results for 
Search instead for 
Did you mean: 

Recommended for You