Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
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

1 Answer 1

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.

share|improve this answer
    
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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