dynogreg / openipam

Automatically exported from code.google.com/p/openipam
0 stars 0 forks source link

Changing host IP address deletes alternate A records #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Problem:

If a host has multiple A records, changing the IP address deletes all A
records with the old IP address and creates a new A record with the
hostname and new IP address.

Fix:

Any functions used for editing a host should be updated to call only
update_* functions wherever possible (and said functions should be created
where they don't exist).  Really, we should be doing 'update dns_records
set ip_content=%(new_address)s where ip_content=%(old_address)s' here.

Additional information:

We may also want CNAMEs to be updated similarly when hostname is changed.

Original issue reported on code.google.com by ekoyle@gmail.com on 24 Jun 2009 at 2:56

GoogleCodeExporter commented 9 years ago
Fixed in trunk and production.

Original comment by ekoyle@gmail.com on 1 Jul 2009 at 4:41