TinyDNS (dns-server) package creating incorrect NS records
kdr last edited by
pfsense: 2.1-RELEASE (i386)
When enabling the "Automatic PTR entry" for an A record, an explicit NS record is also created. This is problematic in my environment because the NS record that is created uses the hostname of the firewall. The correct NS record (in my env) should actually be the loopback address.
For example, I have an existing zone, 0.168.192.in-addr.arpa, with an NS of 127.0.0.1.
I create the A record "test.myprivate.domain=192.168.0.100" and enable "Automatic PTR entry".
The following tinydns records are created:
In my environment, the second line is unnecessary, but if an explicit NS record is created it should read:
I think some logic should be added so that an NS record is only added if one does not already exist for the associated PTR zone. I don't think the assumption should be made that the nameserver is going to be the firewall's hostname.
Line #572 of tinydns.inc is where this NS record is added. Removing the line prevents the NS record from being created.