0

I have about 20 domains "pointing" to my server via A-type DNS records, now that I am moving servers I found it rather tedious to change the IP addresses for all of them and thought that adding a CName would make more sense.

I cannot, however, figure out how to add a CNAME-type record for the domain name itself, and not any subdomains (I am using xname.org as my DNS provider).

So what exactly to I put into the Alias field for the TLD itself?

thanks!

1 Answer 1

1

You can't - it's not allowed to put a CNAME in the apex of a domain (i.e in the same place as the NS and SOA records).

See §3.6.2 of RFC 1034

If a CNAME RR is present at a node, no other data should be present; this ensures that the data for a canonical name and its aliases cannot be different

3
  • Why not? it makes total sense to have
    – clops
    Sep 27, 2010 at 9:51
  • foo.com -> someotherhost.com www.foo.com -> someotherhost.com
    – clops
    Sep 27, 2010 at 9:51
  • @clops: The quote from RFC 1034 already explains why. DNS would have to either a) merge the SOA and NS records of foo.com and someotherhost.com (breaks stuff), b) only display SOA/NS of someotherhost.com (breaks stuff), or c) only display SOA/NS of foo.com (breaks stuff). Sep 27, 2010 at 19:02

This site is temporarily in read-only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .