03-23-2021 11:02 AM
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,
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=188.8.131.52: fqdn: from=test.domain.com to=test1.domain.com
03-23-2021 11:25 AM
Can you try it without the update_if_exists parameter?
record = objects.ARecord.create(conn, view=view, name=my_host, ip=my_ip)
03-24-2021 01:22 AM
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="184.108.40.206"