opennetadmin / ona

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

Fix ONA so that a third level dns domain can add a DNS server. #134

Open daviddpd opened 6 years ago

daviddpd commented 6 years ago

When trying to organize domains into a third level domains, where for example,tn.ixsystems.com 's parent was ixsystems.com - I was unable to add a DNS servers. Further more, the suggestion boxes, would only show util1.ixsystems.com and util1.tn - as seen in the screen shots below. No combination of server and domain would allow the DNS server to be added.

screen shot 2018-04-24 at 4 43 09 pm screen shot 2018-04-24 at 4 45 14 pm

The attached changes, allow this host to be added, and correctly expands util1.tn host name to util1.tn.ixsystems.com. However, the UI gets a little strange, as the server is then "util1.tn.ixsystems.com" and domain being "tn.ixsystems.com" ... it will functionally work as the FQDN in the server, or just the hostname "util1" and the domain "tn.ixsystems.com".