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.

Should I set my IP address' PTR record to the domain (mydomain.com) or the subdomain where the mail server is (mail.mydomain.com)? It's a little confusing.

share|improve this question
    
The forward and reverse DNS should be mirrors of each other. Whatever IP mailserver.domain.com points to should point to mailserver.domain.com. –  MaQleod Sep 5 '11 at 21:33

1 Answer 1

up vote 1 down vote accepted

To expand on my comment, here is an example of proper forward and reverse DNS for mail (methods can vary if you will have multiple mail servers, here is an example where three are load balanced):

All mail servers and priority:

$ host speakeasy.net | grep mail
speakeasy.net mail is handled by 15 mx02.speakeasy.net.
speakeasy.net mail is handled by 5 mx.speakeasy.net.
speakeasy.net mail is handled by 10 mx01.speakeasy.net.

Forward DNS on mail servers:

$ host mx.speakeasy.net
mx.speakeasy.net has address 69.17.117.60
$ host mx01.speakeasy.net
mx01.speakeasy.net has address 69.17.117.60
$ host mx02.speakeasy.net
mx02.speakeasy.net has address 69.17.117.60

RDNS for mail IP:

$ host 69.17.117.60
60.117.17.69.in-addr.arpa domain name pointer mx.speakeasy.net.
share|improve this answer
    
To expand on this, if your mail domain actually points to the same IP as your naked domain, you should make the mail domain a CNAME and treat your naked domain as a proper host name and PTR to that. –  billc.cn Sep 5 '11 at 22:13

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.