Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've asked the sysadmin of a client of mine (runs windows) to create the following CNAME records for their new website:

www.example.com CNAME foobar-web-server.com
example.com     CNAME foobar-web-server.com

The problem is that he cannot create the second entry. I know how this is possible in Linux with bind, by using an ending dot on the alias, but how is it possible in windows DNS?

I guess what he sees looks like:

He tells me that leaving the "Alias name" blank gives him an error.

Any ideas?

thanks

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

You don't say what the error is, but it is probably correct. The root of the domain will have at least SOA and NS records (and possibly MX and A records too). DNS doesn't allow a CNAME to coexist with other records. See RFC 1034 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.

RFC 1912 section 2.4 has some further examples:

A CNAME record is not allowed to coexist with any other data. In other words, if suzy.podunk.xx is an alias for sue.podunk.xx, you can't also have an MX record for suzy.podunk.edu, or an A record, or even a TXT record.

You will have to use an A record for example.com instead of the CNAME.

share|improve this answer
    
Thanks for the response, I'll accept it. I cannot validate it though because the sysadmins of the client don't know how to do this and are afraid to set up another A record for this. Doh. –  cherouvim Jul 19 '10 at 12:49
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.