Fixing Reverse DNS

From Computer Tyme Support Wiki

Revision as of 16:12, 23 January 2009 by Marc (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Fixing your Revers DNS (RDNS)

One of the big problems with email these days is spam and to fight spam many services like us at Junk Email Filter rely on Reverse DNS to get information about the IP address of the email server that is trying to connect to us. If we can't read your reverse DNS your email will probably get through but if you have any other problem in addition to bad RDNS then your email might get blocked or delayed. And neither you or us want that to happen.

As we all know reverse DNS is tricky and if you are reading this you might have a problem you need to solve. You might think your reverse DNS is right but it might not be. There are two things you need to get right in order for RDNS to work correctly. You need:

  1. A PTR record that returns a NAME for the IP address that is being looked up.
  2. The name that is looked up must resolve back to the same IP address. The goal is:

Often the second one is done improperly causing the RDNS to fail.

For example. suppose your IP address is Running dig (a Linux command line utility) returns:

dig -x


This is correct. Now we look up



You'll notice that it resolves back to the same IP address. This is very important because it prevents other's from spoofing your domain. -> ->

Testing your Reverse DNS

You can check the reverse DNS of an IP address here.

Common Mistakes

Many people think their RDNS is correct but they make common mistakes such as:

  1. The name returned resolves to a different IP address than the original.
  2. The name returned doesn't resolver to anything.

For example, suppose your IP is and you set the PTR record to return When someone looks up the RNDS for they get But when they look up it returns which is not, or even worse, the name doesn't resolve at all.

To fix the problem you would have to make sure that resolves to

If you make these changes and you get it right then you will have a much easier time not only delivering email to us but also to thousands of other email servers that have the same issues we do. We hope this information is helpful in resolving your RDNS problem.

Personal tools