DNS Configuration

1

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?

Klakson

Posted 2013-08-01T21:07:41.980

Reputation: 13

1Subdomain 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 – 2013-08-01T21:27:23.457

Further, to prevent interesting problems and aggrevation, I generally never use wildcard DNS records. – mdpc – 2013-08-01T21:56:37.383

BTW, One CAN have multiple A named records for a designated IP number. – mdpc – 2013-08-01T21:57:04.010

Answers

0

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.

user7429642

Posted 2013-08-01T21:07:41.980

Reputation: 1 121

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 – 2013-08-02T08:07:26.023