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

CNAME on TinyDNS

Scheduled Pinned Locked Moved DHCP and DNS
5 Posts 4 Posters 5.0k 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.
  • N
    Nico37
    last edited by May 14, 2010, 6:45 AM

    Hello guys,

    There is something I don't understand with the CNAME on TinyDNS.
    I've setup my SOA record and A records and they are working fine.
    The problem is I cannot have a name resolution for my CNAME record.
    Maybe I dont understand how to use it or how to create it.

    What Im doing:

    | Record Name             Record Type rDNS     Record Data             TTL
    mydomain.com                 SOA           pfsense.mydomain.com.
    test.mydomain.com           A         on   192.168.1.1
    cnametest.mydomain.com CNAME         test.mydomain.com

    Is this correct or I'am wrong to use CNAME like this?

    Thank you

    Nicolas |

    1 Reply Last reply Reply Quote 0
    • D
      danswartz
      last edited by May 16, 2010, 12:57 PM

      Do you need to put a '.' at the end of the CNAME target?

      1 Reply Last reply Reply Quote 0
      • K
        kpa
        last edited by May 16, 2010, 1:04 PM

        At least in BIND which I'm very familiar with you have to terminate CNAMEs with a dot or they will be interpreted as relative to current $ORIGIN.

        1 Reply Last reply Reply Quote 0
        • C
          Cry Havok
          last edited by May 17, 2010, 10:29 AM

          @kpa:

          At least in BIND which I'm very familiar with you have to terminate CNAMEs with a dot or they will be interpreted as relative to current $ORIGIN.

          In BIND you have to terminate any name with a dot to avoid it having $ORIGIN appended.  I would treat all other DNS servers as behaving the same unless their documentation says otherwise.

          1 Reply Last reply Reply Quote 0
          • N
            Nico37
            last edited by May 19, 2010, 12:59 AM May 19, 2010, 12:46 AM

            @Cry:

            In BIND you have to terminate any name with a dot to avoid it having $ORIGIN appended.  I would treat all other DNS servers as behaving the same unless their documentation says otherwise.

            So I've added a dot to any name, now it's look like this:
            Record Name                Record Type   rDNS       Record Data                TTL
            mydomain.com.                    SOA                pfsense.mydomain.com.
            test.mydomain.com.             A            on      192.168.1.1
            cnametest.mydomain.com.    CNAME              test.mydomain.com.

            But it still not working, if I'm trying to ping cnametest.mydomain.com Im still getting "could not find host …Please check the name and try again"

            Also when I'm doing an nslookup for the cname Im getting something weird:

            nslookup cnametest.mydomain.com
            Server:  pfsense.mydomain.com
            Address:  192.168.1.1

            Name:    cnametest.mydomain.com
            Served by:

            • pfsense.mydomain.com
                       192.168.1.1
                       mydomain.com

            Served by?? So it found something but it's able to resolved it correctly?

            Thank you for your time

            1 Reply Last reply Reply Quote 0
            1 out of 5
            • First post
              1/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received