how to create CName record?

Discussion in 'General' started by pawan, Mar 31, 2011.

  1. pawan

    pawan Member

    I have created a Cname record in ISPCONFIG3 dns like this in test domain


    record type CName
    Name - cdn
    data - testdomainalias.cdn.com

    but when querying dns record using dig, no CName record is showing up for the testdomain.

    I have used all combinations, but none worked.

    dig any testdomain.com
    dig cname testdomain.com

    dig @localhost any testdomain.com
    dig @localhost cname testdomain.com

    please note that I am getting answers for other records like A records, mx records, txt records. etc.

    Please help I must be missing something.

    Regards
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You missed to add the dot at the end of testdomainalias.cdn.com. It has to be:

    testdomainalias.cdn.com.

    and not

    testdomainalias.cdn.com
     
  3. pawan

    pawan Member

    I am sorry to leave the dot in my post. but I have included dot as mentioned by you i.e. I have created the dns record as testdomainalias.cdn.com. still I am facing the the problem.

    However I have not included the dot in the name part that is it is kept as cdn and not cdn. but the data field is testdomainalias.cdn.com.

    What else could be wrong.
     
  4. pawan

    pawan Member

    Solved
    I am really sorry.
    The problem was my quering the DNS.

    instead of querying testdomain.com I should have queried cdn.testdomain.com to get the correct answer.
     

Share This Page