Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

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

    Scheduled Pinned Locked Moved DHCP and DNS
    3 Posts 2 Posters 778 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lpacor
      last edited by lpacor

      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!

      GrimsonG 1 Reply Last reply Reply Quote 0
      • GrimsonG
        Grimson Banned @lpacor
        last edited by Grimson

        @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.

        1 Reply Last reply Reply Quote 0
        • L
          lpacor
          last edited by

          @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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.