Reverse DNS maps an IP address back to a hostname through a PTR record. Receiving mail servers check it, and a meaningful name makes logs and traceroutes easier to read. You set it yourself for the IPv4 address of each server, from the console.
Before you start
Create the forward record first: an A record for the name you want (for example mail.example.com) that points at the server's IPv4. The console does not check it, but mail servers compare both directions and distrust a PTR whose name does not resolve back to the same address.
Set the PTR record
- Click Servers in the sidebar and open the server.
- Open the Networking tab. The Addresses and reverse DNS card shows the current value next to Reverse DNS (not set on a new server).
- In the field PTR record for followed by your IPv4, type the full hostname, for example
mail.example.com. - Click Save reverse DNS. The console answers "Reverse DNS update requested."
- The change runs as a Set reverse DNS action. Follow it in the server's Activity tab: when its status is Done, the new name appears next to Reverse DNS.
The button stays disabled until the server has an IPv4, which happens when the deploy is finished.
Check the result
From any computer, look up the address, then the name:
dig -x 203.0.113.10 +short
dig +short mail.example.com A
The first command should print mail.example.com. and the second the same IPv4. DNS resolvers cache answers, so an old value can show up for a while after the change.
Change or remove the record
- To change it, type the new hostname and click Save reverse DNS again.
- To remove it, empty the field and save. The Reverse DNS row goes back to not set.
Each change is recorded on your account Activity page as "Reverse DNS changed", with the new name or "cleared".
What the console accepts
- A hostname made of letters, digits, hyphens and dots, such as
mail.example.comorvpn-01.example.net, up to 253 characters. - Capital letters are turned to lowercase, and a trailing dot is removed.
- Underscores, spaces and URLs are refused with "Enter a valid hostname, for example mail.example.com."
IPv6 and other addresses
The form sets reverse DNS for the server's main IPv4 only. There is no field for the IPv6 address or for a floating IP. If you need a PTR record on one of those, open a ticket from Support with the category Network or IP, and give the address and the hostname you want. Until the IPv6 side matches, configure mail software to send over IPv4 only.
Tips
- Use one name everywhere: the PTR record, the
Arecord, the server's hostname and the name your mail server announces when it connects (for Postfix, themyhostnamesetting). - Rebuilding a server keeps its IP addresses and its reverse DNS record. Deleting a server releases its addresses back to the pool, so the record stops being yours.
- Reverse DNS is one part of mail deliverability. SPF, DKIM and DMARC records matter as much: see Send email from your server.
- Where the addresses are and how they behave: Your server IPv4 and IPv6 addresses.