When adding names to prefixes such as on https://netbox.wikimedia.org/ipam/prefixes/34/ip-addresses/. if a user enters a fully qualified *and terminated* domain i.e. the domain ends with a period, into the hostname field then sre.dns.netbox generates reverse zones with a double period.
See the following diff after removing a period from some offending names
diff --git a/32-27.153.80.208.in-addr.arpa b/32-27.153.80.208.in-addr.arpa index 848c67c..c50f1c1 100644 --- a/32-27.153.80.208.in-addr.arpa +++ b/32-27.153.80.208.in-addr.arpa @@ -10,10 +10,10 @@ 44 1H IN PTR cloudservices2005-dev.wikimedia.org. 45 1H IN PTR mx2001.wikimedia.org. 46 1H IN PTR wiki-mail-codfw.wikimedia.org. -47 1H IN PTR ns-recursor0.openstack.codfw1dev.wikimediacloud.org.. +47 1H IN PTR ns-recursor0.openstack.codfw1dev.wikimediacloud.org. 48 1H IN PTR ldap-corp2001.wikimedia.org. 49 1H IN PTR serpens.wikimedia.org. -50 1H IN PTR ns-recursor0.openstack.codfw1dev.wikimediacloud.org.. +50 1H IN PTR ns-recursor0.openstack.codfw1dev.wikimediacloud.org. 51 1H IN PTR install2003.wikimedia.org. 54 1H IN PTR bast2002.wikimedia.org. 55 1H IN PTR vl2002-enp59s0f1d1.lvs2007.codfw.wmnet. diff --git a/org.-codfw b/org.-codfw index 1f1a321..e8914e7 100644 --- a/org.-codfw +++ b/org.-codfw @@ -1,4 +1,2 @@ -ns-recursor0.openstack.codfw1dev.wikimediacloud 1H IN A 208.80.153.47 -ns-recursor0.openstack.codfw1dev.wikimediacloud 1H IN A 208.80.153.50 ns-recursor0.openstack.codfw1dev.wikimediacloud 1H IN AAAA 2620:0:860:3:208:80:153:47 ns-recursor1.openstack.codfw1dev.wikimediacloud 1H IN AAAA 2620:0:860:3:208:80:153:50 diff --git a/wikimediacloud.org-codfw b/wikimediacloud.org-codfw index 710ae1f..67a0372 100644 --- a/wikimediacloud.org-codfw +++ b/wikimediacloud.org-codfw @@ -3,3 +3,5 @@ wan.cloudgw.codfw1dev 1H IN A 208.80.153.190 cloudgw2001-dev.codfw1dev 1H IN A 208.80.153.188 cloudgw2002-dev.codfw1dev 1H IN A 208.80.153.189 cloudinstances2b-gw.openstack.codfw1dev 1H IN A 185.15.57.10 +ns-recursor0.openstack.codfw1dev 1H IN A 208.80.153.47 +ns-recursor0.openstack.codfw1dev 1H IN A 208.80.153.50
Beginning with version 3.0, Netbox allows custom data validation which would allow us to enforce consistency in formatting *without* the terminating period (due to the issue mentioned above).