Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know that if I have a website hosted on one sub-domain, I can create an alias sub-domain using CNAME records with the following setup:

The thing I am not sure about is whether DNS record types, other than A records, will be redirected. For example:
MX 1
MX 2
TXT some text string

Will inherit all DNS records from

What if there is a sub-domain of In my case, I am looking at setting up DKIM records:
TXT k=rsa...

Will inherit all of those records too?

share|improve this question
up vote 4 down vote accepted

A canonical name CNAME record states that is basically an alias of, so this will affect all query types. There's no reason to believe that it would be specific to A queries, that's just its most common use.

The CNAME record only applies to though.

share|improve this answer
What about the _domainkey subdomain? It looks like Sendgrid is adding another CNAME record. I did not know that was legal. – dana Sep 4 '13 at 16:56
@dana simply adding more dotted words to the beginning of a DNS record does not mean it is a subdomain, though that term has been co-opted and corrupted by many hosting companies. A true DNS sub-domain will actually delegate responsibility for DNS lookups for the sub-domain to another set of DNS servers entirely – Sammitch Sep 4 '13 at 17:22
One DNS resource can only have 1 CNAME. Having more than one (or a CNAME and other records, other than DNSSEC) makes no sense. Looking at the Sendgrid page, they show 3 CNAME records to add, but each one is for a different resource (location as they call it in the table) – USD Matt Sep 4 '13 at 18:02
Thanks for the comments :) I learned some interesting stuff here. – dana Sep 5 '13 at 14:32

No. The CNAME record is nothing but an alias to an A record. It does not inherit nor affect any other record or lookup.

If you want A/MX/TXT records for you will have to define them separately.


In the case of the DKIM records the answer is a little fuzzier. Messages sent by a server with DKIM set up to sign messages with's DKIM can sign messages sent via the domain, but the DKIM signature will refer to as the DKIM signer so that receiving servers will look up the correct key.

share|improve this answer

Your Answer


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.