• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 764 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 Jan 14, 2019, 7:10 AM Jan 7, 2019, 11:00 AM

    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!

    G 1 Reply Last reply Jan 7, 2019, 11:08 AM Reply Quote 0
    • G
      Grimson Banned @lpacor
      last edited by Grimson Jan 7, 2019, 11:09 AM Jan 7, 2019, 11:08 AM

      @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 Jan 7, 2019, 11:20 AM

        @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
        1 out of 3
        • First post
          1/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received