Email · about 15 minutes
Fix Reverse DNS for a Mail Server
What This Means
Reverse DNS (a PTR record) gives your mail server's IP address a name, and that name should point back to the same address.
Why It Matters
Many receivers reject or delay mail from an address with no reverse DNS, or with a name that doesn't point back.
- 1
Choose the server's mail name
Use a name on your own domain, such as mail.example.com, and add an A record for it pointing to the server's IP address.
mail.example.com A 203.0.113.10 - 2
Set the PTR record with whoever owns the IP
Reverse DNS is not in your domain's DNS. It's set by the provider of the server or IP: most have a Reverse DNS or rDNS setting in their control panel; otherwise ask their support to point 203.0.113.10 to mail.example.com.
- 3
Make the server introduce itself by the same name
Set the mail server's hostname (HELO) to the same name, so all three match: the PTR, the A record and the HELO.
hostnamectl set-hostname mail.example.com
Check It’s Fixed
Check your domain again on mail.frabs.net, or the address on ip.frabs.net. Reverse DNS should show a match. DNS changes can take up to an hour to show.