Question
How do I setup a PTR Record?
I am running an email server and my outgoing emails are finding themselves in the recipient’s spam box.
After diving into the issue.. I am seeing that the issue is coming from being unable to do a reverse DNS lookup.
I’ve added all the appropriate mail records (A, MX, TXT) and am still coming across this issue.
This is what I am seeing from www.intodns.com/americanglassandmirror.com
Reverse MX A records (PTR) ERROR: No reverse DNS (PTR) entries. The problem MX records are:
30.253.236.104.in-addr.arpa -> no reverse (PTR) detected
You should contact your ISP and ask him to add a PTR record for your ips
Can you clue me in on what I could be missing here?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
An additional note… that is not my IP address on DigitalOcean.
After doing a lookup on that IP address… it said that it was the “DoD Network Information Center”.
Does anyone have any insight on to why its pointing to their IP?
This only seems to be the case when I do a PTR lookup (dig -x ipaddr) on my digital ocean address.
DigitalOcean automatically configures the reverse dns entry (PTR) on their end. It will be the hostname you choose when you set up your dropplet. You can change/check this in the control panel by selecting your dropplet, then settings, then rename. As it says, changing the name there will update the PTR but not the hostname of the system, that is something you will need to do, instructions for that vary depending on the system you have installed.
You can check the PTR by using the host command as follows:
host <IP_ADDRESS>
You will have to substitute your IP address in the command above.
Example:
host 8.8.8.8
8.8.8.8.in-addr.arpa domain name pointer google-public-dns-a.google.com.
You may also be a little confused: You can not update the PTR of an IP address you have not been assigned (in the U.S. by ARIN). The IP address you are using from DigitalOcean may be able for you to use, but it has not really been assigned in a way you can freely control as far as reverse dns goes, therefor you can’t change a PTR record for an IP you don’t have access to. (That’s why mail servers check PTR; if you have a properly configured reverse dns record your more likely to be authorized to send mail from that IP.)
Good luck.
I can’t find the “settings” option on my droplet. I did find the domains option from the list of droplets -> dropdown on the right “more” -> “add a domain”? I did that but a PTR Record is still not being indicated. Do I just need to wait for the record to propagate?