opennetadmin / ona

OpenNetAdmin IP Address Management (IPAM) system
opennetadmin.com
GNU General Public License v2.0
137 stars 35 forks source link

Duplicate primary host name after domain name change #55

Open mattpascoe opened 10 years ago

mattpascoe commented 10 years ago

To reproduce:

add two hosts with primary names of: test.example.com test.newexample.com

Now modify test.example.com and change the domain name to newexample.com.

The issue:

Normally its fine to have multiple A records.. but in the case of an A record that is the primary DNS name of another host, it can be very confusing. You will not be able to properly search for hosts in ONA and you'll just have general confusion.

I think at this point it is better to just not allow this when it is a primary dns record. .. I dont see how in the real world you would ever want the same name to be on multiple truly separate hosts as the primary. make the name no longer primary and then you can do it.

Will need to adjust the dns_record modify code to not allow duplicates for primary dns records.