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 want to verify my domain name with google apps, by using DNS verification. This involves making a TXT record with a generated value by google.

However, I have a CNAME record for the "mydomain.com". If I use nslookup to query the TXT record, it tells me about this CNAME I made and gives me the TXT records for the CNAME'd DNS entry.

Is this a problem with my DNS registrar or is it normal behaviour?

share|improve this question
add comment

1 Answer 1

up vote 9 down vote accepted

You can't use a CNAME as a root for your domain. To quote Wikipedia's article on RFC 1034 :

An alias defined in a CNAME record must have no other resource records of other types (MX, A, etc.)

The reason for this is because the CNAME tells clients that (in essence) you need to look here for your answer, but this applies for the entire domain. So not only is your A record set to that, but any other record will be ignored. In fact most DNS servers don't let you add any other records to a Cnamed host. Check out RFC 1912 section 2.4 for a example of why it won't work.

Your only solution is to remove the CNAME and use a A record. If you tell us the domain, we can suggest possible work arounds, but until you remove the CNAME from the root of the domain, it's not going to work.

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.