Reply to topic
Email Tips: Reverse DNS (RDNS)
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 858
Location: Newark, De
Reply with quote
Quoting Wikipedia,

"Typically, computer networks use the Domain Name System to determine what IP address is associated with a given domain name. So, to reverse-resolve a known IP address is to look up what host and domain name belongs to that IP address.

Network administrators often refer to a reverse lookup as reverse resolving, or more specifically reverse DNS lookup, and is accomplished using a "reverse IN-ADDR entry" in the form of a PTR record."


In layman's terms, you can think of an RDNS entry in your nameserver as an IP address that points back to a domain name. This is a strange concept, because we're mostly concerned with figuring out what IP address a domain name is pointing to, the exact opposite of RDNS (that's where the REVERSE comes in I suppose). Though there are likely other uses for it, RDNS for a webhost is primarily discussed in terms of email - it is standard practice for a recipient mailserver to check the RDNS entry of the connecting server before it accepts a message. AOL does this with the zeal of a religious fanatic, and has for some time. So, in order to send email effectively you need to ensure that your sending server has a proper RDNS record configured. I won't go into the configuration details since your host will likely take care of that for you, however here is the basic premise:

1. The server you send mail from must have an RDNS entry.
2. That entry must correspond to either

a. The primary IP address of the sending server (the default IP used to send by mail programs).
b. The IP address specifically assigned to send mail by the mail program.


To elaborate on 'b' - SmarterMail, for example, has the ability to set EACH DOMAIN to send on it's own IP address - you can choose any IP that is bound to the server, and IPs can be re-used if you like. The easiest way to see what IP is being used, aside from checking the mail program's configuration, is just to send a message to an EXTERNAL mail account (aol, yahoo, hotmail, et al.) and then when it gets there check the message header to see the IP of the last server that touched the message before the remote recipient server recieved it. For more information on checking headers, see

http://www.hostmysite.com/support/email/headers/

That last paragraph had an important point buried in it: THE ONLY IP THAT MATTERS IS THE IP OF THE LAST SERVER THAT PROCESSED THE MESSAGE BEFORE ITS DELIVERY. For example, in a common header you will see an entry for your local machine's IP if you sent the message via MS Outlook or some other similar mail program. That local IP address (which likely belongs to your ISP) does NOT need to have RDNS setup since it's not the server that actually tried to deliver the message. This is a VERY important concept to understand because in it lies the key to understanding EVERY mail delivery problem...i.e. check the last server on the sending side that had the message since that is where the problem will lie.

If you're sending mail via a web-based form (i.e. a 'contact us' form) then the sending server could be the webserver itself if the webserver is configured to send it's own mail, or it could be some sort of relay server if you're webserver (or the script you're using to send) is configured to bounce the message off another server for processing before delivery to the recipient server.

Read this several times if needs be; the concept here is the same one that is used by our technicians to determine exactly why a message bounced...and while it's a tedious process tracking the route a message took and the servers that handled it before it reached the recipient server is the best method to figuring out where your message went awry.


Last edited by jamie on Tue Jan 27, 2009 6:37 am; edited 1 time in total
nathacof
Forum Admin

Joined: 24 Oct 2006
Posts: 192
Location: Dover, DE
Reply with quote
You can check an IP's RDNS record here:

http://neranjara.org/tools/rdns
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 858
Location: Newark, De
Reply with quote
Yeah, ok I have no idea how I made it though that massive post without ever once mentioning an easy way to determine an IP's reverse DNS. Smile

Oh, and one other tip: while it is possible to have MULTIPLE RDNS entries for an IP address (basically pointing back to more than one domain name) this behavior is not advisable. Most automated checks for the existence of an RDNS record simply return the first result they find, and I believe nameservers alternate which record they would provide. In short, having 5 domains listed in RDNS will mean that anything doing a check on it would get a random result back, which probably won't get the job done.
nathacof
Forum Admin

Joined: 24 Oct 2006
Posts: 192
Location: Dover, DE
Reply with quote
The record returned by the DNS server is determined on a round-robin basis I believe Jamie, but certainly not desirable behavior to say the least.
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 858
Location: Newark, De
Reply with quote
Yup, you're right. 'Round-robin' was the term I was looking for when I said '...nameservers alternate which record they would provide...'

Thanks again; you're a great wingman.
kurt


Joined: 18 Feb 2009
Posts: 18
Reply with quote
I have been having issues sending people email. I receive no bounce or anything so I assume they received it until a mad customer emails me saying I didn't respond. This has been going on for a couple weeks. I didn't change anything. Finally, I did a reverse dns lookup on my IP and it's pointing to the wrong domain name!!! Some domain name at yahoo.... I contacted support to fix it. How could this have been set up wrong in the first place?
nathacof
Forum Admin

Joined: 24 Oct 2006
Posts: 192
Location: Dover, DE
Reply with quote
Unfortunately there is no guarantee that your designated IP wasn't owned at one point by another customer. Due to limited availability of IP addresses I'm afraid there's not much that can be done about it.

However just submit a support request and we'll get you sorted.
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 858
Location: Newark, De
Reply with quote
Nate's answer is correct, however it should also be noted that RDNS for your website itself is largely irrelevant. Mailservers don't care whether or not a website has proper RDNS because they don't check the website's IP, they check the IP of the connecting mailserver. For example, when you send a message through the HMS network it goes through your Smartermail Server then gets relayed through our outbound Barracuda Spam Firewall cluster. The Barracuda appliance that hands the message off to yahoo (or wherever your recipient is) MUST have proper RDNS in place since it's the only server/IP that Yahoo would 'see' and care about.

While it's not a bad idea to have support fix the RDNS issue with your website's IP address, that probably won't make a difference to your email problem. If your associate is consistently not getting your email the best thing to do is ask Support to track the message (assuming it was sent within the last few days) and they can dig up the logs and tell if the recipient server gave any sort of an error. If it's been longer than that the only thing to do is either resend and retest or check your Spam/Junk folder for a bounceback from that recipient's mailserver.
nathacof
Forum Admin

Joined: 24 Oct 2006
Posts: 192
Location: Dover, DE
Reply with quote
The only mail servers I know of that actually checks if the RDNS and Hostname match literally would be Craig's list ... they must get a lot of spam to stoop so low ...
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 858
Location: Newark, De
Reply with quote
They actually do that? Seems like it would cause more problems than it would solve in the case of major 3rd party email providers sending them mail...maybe exceptions exist for hotmail, etc? Still sounds like a stupid system to me regardless.
nathacof
Forum Admin

Joined: 24 Oct 2006
Posts: 192
Location: Dover, DE
Reply with quote
It probably turns away more legitimate mail than spam.

I haven't seen the problem in a while though, this was back when I was in shared support.

I could throw up a temporary VPS if you wanna test it. Smile
Email Tips: Reverse DNS (RDNS)
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic