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'm currently running a server at home, but I have a dynamic IP. So I subscribed to a dynamic dns service(dlinkddns.com). I made all the correct settings in my own network, and the ip updates perfectly.

The problem is that I have a domainname(let's say: "example.com"), and I want to set the root domainname without any prefixes ("example.com") to CNAME to my dlinkddns domain. But my domain name DNS host says I can't do that(it's "not allowed"). I can do it for "www.example.com" etc. and that works perfectly, but just not for the root domain name. Anyone knows a solution to this?

share|improve this question
    
Which DNS host are you using ? It sounds like their software wants an A Record to have a prefix to the Domain like www.domain.com for a reason. –  Jonathan Ross Mar 31 '11 at 14:00
    
I use a Dutch one: www.webreus.nl . So if it might just be their software screwing me over? :P –  teuneboon Mar 31 '11 at 14:02
    
I'd ask them for help or check documentation. –  Jonathan Ross Mar 31 '11 at 14:28
add comment

migrated from serverfault.com Mar 31 '11 at 15:50

This question came from our site for professional system and network administrators.

2 Answers

up vote 12 down vote accepted

you cannot set a cname for a root domain record eg example.com because that would break the RFC which states

From RFC1034 section 3.6.2: 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.

http://www.faqs.org/rfcs/rfc1034.html

you cant do this for example.com because example.com will also have ns records to make it work which breaks the no other data should be present rule

you can cname www.example.com because this is not the root domain so can easily be made to have no other data present for it

the only way to get round this is to either use www or to get your domain parked where you want it CNAME'ed and get the relevant IP address to setup an A record for example.com

EDIT: i just read that your using dynamic dns, some dynamic dns providers can work with your domain if you host it on there nameservers, this way there dynamic dns updaters can update example.com's IP and you avoid any cname issue altogether, i only know off the top of my head of dyndns offering this as a paid service

share|improve this answer
    
I also wanted to set up a CNAME on the FQDN I got for free from no-ip and host my DNS server myself. Seems like it's quite hard. –  Aki Nov 4 '13 at 17:51
    
For what it's worth, Hover.com does allow you to use a CNAME on a naked domain (aka apex of the domain). No warning is given when doing this through their interface. I've no idea of the practical effects, but it's working for me so far. –  Mason G. Zhwiti Feb 13 at 8:30
    
MasonG.Zhwiti Just because you can, doesn't mean you should... it still breaks RFC's and likely will cause significant problems for you if you did –  anthonysomerset Feb 14 at 11:07
    
Assuming the NS and SOA data is the same for the alias domain as it is for the canonical domain, is it possible to not have any NS and SOA records, and just have the one CNAME present at the alias domain's root? If possible, seems this would still satisfy the quoted statement from the RFC. –  Gary Mar 10 at 15:53
add comment

You can not set naked domain name in CNAME records. You must have to do ONLY those settings for alias domains like www.example.com , about.example.com and more at CNAME records and the primary or ROOT domain settings must be done at A Records and you have to provide IP address of host. First delete the settings from CNAME about the naked domain and set it at "A Records" and then do settings at C Name for alias like www, about or anything like that.

This may help you: A Records, CNAME, MX Records : Basics to Setup Your Blog

share|improve this answer
add comment

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.