I own a domain, let's say example.com I want that domain to lead to my ddns hostname, so on my DNS I added CNAME record: Alias * name dynamic-dns.org. That works perfectly.

Recently, I run into the need of having subdomain leading to another machine, so I added record "A" Name: foo Address: ip address of that machine. But that configuration doesn't work. My guess is that there shouldn't be any wildcard in cname record... but what else should be there?

  • 1
    Subdomain has an "A" record? Why not use a "CNAME"? Target server has to be configured to recognize requests for "A" records. Which is why you should use CNAME, and then you don't have to worry about the IP changing on the target server. – Logman Aug 1 '13 at 21:27
  • Further, to prevent interesting problems and aggrevation, I generally never use wildcard DNS records. – mdpc Aug 1 '13 at 21:56
  • BTW, One CAN have multiple A named records for a designated IP number. – mdpc Aug 1 '13 at 21:57
up vote 0 down vote accepted

You will want to use the symbole @ as in @.domain.com instead of *.domain.com to represent your primary domain name. Then you'll be able to define subdomains normally.

  • I have actually used "www" instead of "@" for my dynamic dns host in cname, and "A" record guiding to point to an IP address. And now it works as it should. Thank you for your help, Gregory! – Klakson Aug 2 '13 at 8:07

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.