[SOLVED] - Bind DNS Server - wrong CNAME Records (ending with ".")



  • Hello there!

    I have a new installation of pfSense 2.4.4-RELEASE-p1 and I installed the Bind package (v. 9.12) as I want the box to act as the name server in my home network.

    I have mirrored the DHCP and Bind settings of the existing and working (virtual) box and managed to get the DNS zone(s) to get updated by the DHCP server and that seems to work fine.

    But I realised that the CNAME records get written into the config file in the wrong format (they end with a "."), e.g. "ns2 IN CNAME server2." instead of "ns2 IN CNAME server2" (without the "."). So if I try to resolve ns2 (e.g. "ping ns2") it fails with "ping: cannot resolve ns2: Unknown host".

    I can correct the zone file(s) in /cf/named/etc/namedb/master/ but after a while the files get rewritten (I guess due to the DHCP updates) and I am back at square 1.

    I used the Web GUI to configure everything and I checked the DNS zone entries at least 10 times and I am sure they don't have any "." at the end.

    Am I misunderstanding anything or doing anything wrong?

    Thank you very much in advance!



  • @lpacor said in Bind DNS Server - wrong CNAME Records (ending with "."):

    But I realised that the CNAME records get written into the config file in the wrong format (they end with a "."), e.g. "ns2 IN CNAME server2."

    That is the correct format: https://en.wikipedia.org/wiki/CNAME_record

    So if I try to resolve ns2 (e.g. "ping ns2") it fails with "ping: cannot resolve ns2: Unknown host".

    Use FQDNs.



  • @Grimson Thanks a lot for your swift reply.

    Does that mean I have to enter the record in the format "ns2 IN CNAME server2.mydomain.myextension"?

    Cheers


Log in to reply