CNAME on TinyDNS



  • 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 |



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



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



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



  • @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:

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

    Thank you for your time


Locked