MX records and CNAMEs

Posted by sly on Server Fault See other posts from Server Fault or by sly
Published on 2011-01-14T18:38:46Z Indexed on 2011/01/14 18:54 UTC
Read the original article Hit count: 354

Filed under:
|
|

I realize similar questions were asked/answered on this, but I have a subtle detail to which I can not find answers anywhere. Let's exemplify with the following DNS entries:

foo.example.com  A     1.1.1.1
bar.example.com  A     1.1.1.2
wee.example.com  CNAME foo.example.com

foo.example.com  MX    foo.example.com.s9a1.psmtp.com
bar.example.com  MX    bar.example.com.s9a1.psmtp.com 

Note the last line. My institution has that kind of MX records, where for each MX record the value has the label prepended. Question 1 is, what is the motivation for this (why not just s9a1.psmtp.com)? Question 2 is more subtle and follows..

My understanding is that an MX record should not contain any aliases for neither label nor the value, i.e. the following would be bad practice:

wee.example.com  MX    wee.example.com.s9a1.psmtp.com

Then, how should the RRs look for the alias wee.example.com?

Thanks!

© Server Fault or respective owner

Related posts about dns

Related posts about cname