homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

Reverse-DNS (PTR) records
Where to point to?

5+ Year Member

Msg#: 4024445 posted 3:53 pm on Nov 13, 2009 (gmt 0)

Hi guys,

My current setup is as follows (mail server runs on the same IP as my web server):

mydomain.com A w.x.y.z
mail.mydomain.com CNAME mydomain.com
mydomain.com MX mail.mydomain.com 10

I've also a PTR record from my ISP which currently points to "mail.mydomain.com".

The situation is that several major mail servers require a PTR record to be present in order to accept mail from my mail server. My question is, is it enough for the PTR record to point to mydomain.com instead of mail.mydomain.com ? Or should I just remove the "mail.mydomain.com" record and point the MX to mydomain.com, since there is really no point in having it other making my domain look cooler :P

Thanks :)



5+ Year Member

Msg#: 4024445 posted 4:07 pm on Nov 16, 2009 (gmt 0)

Anyone ?


WebmasterWorld Senior Member lammert us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4024445 posted 8:40 pm on Nov 17, 2009 (gmt 0)

In your current setup, the MX record points to a CNAME which is not allowed according to RFC 2181. It must resolve directly to an A record.

There are three valid setups:

Option 1: (bulky, but correct)
mydomain.com A w.x.y.z
mail.mydomain.com A w.x.y.z
mydomain.com MX mail.mydomain.com 10

Option 2: (redundant use of domain name)
mydomain.com A w.x.y.z
mydomain.com MX mydomain.com 10

Option 3: (shortest version)
mydomain.com A w.x.y.z

Yes, the last option is also valid because the SMTP standard automatically uses the A record of a domain name if there is no MX record available. This is to be backward compatible with the oldest specifications. MX records are a "new" invention to separate the main domain IP and the mailserver accepting mail for that domain.

The PTR record should be valid, but there is no need to make it the same as your MX record.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved