mylesw
24th August 2006, 08:18 PM
I hope this isn't too off-topic, but I'm trying to work out what to instruct my ISP for my Linux web server DNS configuration. We use an external managed DNS provider for all of our domains (www.zoneedit.com) and have 4 co-located servers at a data center here in Phoenix. The data center have allocated us 20 IP addresses, and I have configured DNS for our domains with our DNS provider.
The DNS provider, however, cannot handle ReverseDNS setup for us because we don't own the entire class C subnet and has suggested that we have our ISP setup reverse DNS for us. I've instructed them to do this, but its not working correctly.
I believe my problem is in what I have asked them to do. My configuration is as follows:
1. Main domain ABC.COM is hosted on Apache 2 on Fedora Core 5 Linux
2. ABC.COM, through SendMail, relays all outgoing email to a seperate mail server on its own IP address (a different box also co-located). This box we will call MAIL.ABC.COM
In my DNS setup, I have the A record for ABC.COM pointed to the IP address of the Linux box. I have the MX record set to MAIL.ABC.COM for the email handling. Sendmail is set to route to MAIL.ABC.COM for any outgoing email on the ABC.COM box.
My understanding of reverse DNS is that under this situation, it would be setup as follows:
PTR record created for ABC.COM to resolve back to the IP address of the box that the web server is running on
PTR record created for MAIL.ABC.COM to resolve back to the IP address of the box that the mail server is running on.
Therefore a recipient mail server, on receiving an email from INFO@ABC.COM would do a reverse DNS lookup of ABC.COM and get its IP address. But as the email was sent through a relayed mail server, the IP address would be different. It would therefore check the MX record of the domain that it reversed to and see that the mail server is MAIL.ABC.COM and resolve the IP address that it came from to be from that domain, and therefore accept the email.
Am I deducing this correctly, or is there a flaw to my understanding of how reverse DNS and mail servers work in regards to this?
All help and comments greatly appreciated.
Regards,
Myles
The DNS provider, however, cannot handle ReverseDNS setup for us because we don't own the entire class C subnet and has suggested that we have our ISP setup reverse DNS for us. I've instructed them to do this, but its not working correctly.
I believe my problem is in what I have asked them to do. My configuration is as follows:
1. Main domain ABC.COM is hosted on Apache 2 on Fedora Core 5 Linux
2. ABC.COM, through SendMail, relays all outgoing email to a seperate mail server on its own IP address (a different box also co-located). This box we will call MAIL.ABC.COM
In my DNS setup, I have the A record for ABC.COM pointed to the IP address of the Linux box. I have the MX record set to MAIL.ABC.COM for the email handling. Sendmail is set to route to MAIL.ABC.COM for any outgoing email on the ABC.COM box.
My understanding of reverse DNS is that under this situation, it would be setup as follows:
PTR record created for ABC.COM to resolve back to the IP address of the box that the web server is running on
PTR record created for MAIL.ABC.COM to resolve back to the IP address of the box that the mail server is running on.
Therefore a recipient mail server, on receiving an email from INFO@ABC.COM would do a reverse DNS lookup of ABC.COM and get its IP address. But as the email was sent through a relayed mail server, the IP address would be different. It would therefore check the MX record of the domain that it reversed to and see that the mail server is MAIL.ABC.COM and resolve the IP address that it came from to be from that domain, and therefore accept the email.
Am I deducing this correctly, or is there a flaw to my understanding of how reverse DNS and mail servers work in regards to this?
All help and comments greatly appreciated.
Regards,
Myles