- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Adding two A record entres for the same ip overwrites first
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2021 11:25 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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="1.1.1.4"