Reverse DNS (PTR records) for your server
Reverse DNS answers the question "which name belongs to this IP address?" through a PTR record, and it matters most for mail, where receivers distrust servers without a matching name. The PTR record for your IPv4 or IPv6 address is set by us: open a support ticket with the address and the hostname, after you have created the matching forward record yourself.
Networking and security guide, updated 2026-12-03
What is a PTR record?
Normal DNS lookups go from a name to an address: mail.example.com to 203.0.113.10. Reverse DNS goes the other way. The address is turned into a special name under in-addr.arpa for IPv4 or ip6.arpa for IPv6, and the record stored there is a PTR record that points back to a hostname.
For 203.0.113.10, the lookup name is 10.113.0.203.in-addr.arpa, with the octets reversed. The answer might be mail.example.com..
The key difference from forward DNS is who controls it. Your domain is hosted by your DNS provider and you edit it yourself. The reverse zone for an address belongs to whoever owns the address block, so a PTR record for a server address is set by the network operator, in this case us.
Why do mail servers care about reverse DNS?
Receiving mail servers use reverse DNS as a cheap reputation check. A connection from an address with no PTR record, or one with a generic name like static-203-0-113-10.example.net, looks like a home connection or a compromised machine. Many receivers reject such mail, delay it or send it to spam.
The test most of them run is forward-confirmed reverse DNS (FCrDNS):
- Look up the PTR of the connecting address:
203.0.113.10givesmail.example.com. - Look up the A or AAAA record of that name:
mail.example.comgives203.0.113.10. - If both directions agree, the check passes.
A PTR that points to a name that does not resolve back fails the check just as badly as a missing one. This is why we ask for the forward record first. If you plan to run mail, also read the mail server use case: outgoing port 25 is opened on request through support.
How do you check the current reverse DNS?
Use dig -x with the address. It builds the reverse name for you:
$ dig -x 203.0.113.10 +short
mail.example.com.
$ dig -x 2001:db8:1234:5678::1 +short
mail.example.com.An empty answer means no PTR exists. The host command gives a friendlier line:
$ host 203.0.113.10
10.113.0.203.in-addr.arpa domain name pointer mail.example.com.Then confirm the forward direction:
dig +short A mail.example.com
dig +short AAAA mail.example.comBoth commands come from bind9-dnsutils on Ubuntu and Debian (apt install bind9-dnsutils) and from bind-utils on Rocky, Alma and Fedora (dnf install bind-utils).
How do you request a reverse DNS change?
Reverse DNS is not a button in the console; support sets it for you. The steps:
- Create the forward record first. At your DNS provider, add an A record for the hostname pointing to the server IPv4 address, and an AAAA record if you want IPv6 rDNS too. Wait until
dig +short A mail.example.comreturns the right address from the outside. - Open a ticket in the console (tickets are available after your first paid order). Name the server, the exact IP address and the hostname, for example: "Please set the PTR for 203.0.113.10 to mail.example.com, and for 2001:db8:1234:5678::1 to mail.example.com."
- Wait for the reply and then check with
dig -x. Reverse zones are cached like any DNS data, so a resolver that looked up the old value may show it until its TTL runs out.
See support for how tickets work.
What hostname should you choose?
Pick a fully qualified name in a domain you control, one that will not change and that describes the machine rather than a single website. Good examples: mail.example.com, srv1.example.com, fra1.example.com.
Avoid names that look generic or dynamic, such as anything containing the IP address in digits, or words like dsl, dynamic or pool. Spam filters treat those as residential. Use only letters, digits, hyphens and dots, and keep the whole name under 253 characters.
Only one PTR per address makes sense. A server with several websites still has one main hostname, and the websites are found through their own A records.
How do you align the server hostname with the PTR?
Mail servers announce themselves with a name in the SMTP HELO or EHLO greeting. Receivers compare it with the PTR, so all three should be the same name: the PTR, the forward record and the greeting.
Set the system hostname:
hostnamectl set-hostname mail.example.comThen tell the mail software. In Postfix, set myhostname = mail.example.com in /etc/postfix/main.cf and reload with systemctl reload postfix. Check what the server says by connecting to it: openssl s_client -starttls smtp -connect mail.example.com:25 -crlf and type EHLO test.
On cloud images, cloud-init may reset the hostname at boot. If it does, set preserve_hostname: true in /etc/cloud/cloud.cfg.d/99-hostname.cfg.
How does reverse DNS work for IPv6?
IPv6 reverse names are long because every hexadecimal digit becomes its own label, reversed, under ip6.arpa. For 2001:db8:1234:5678::1 the lookup name has 32 nibbles ending in 8.7.6.5.4.3.2.1.8.b.d.0.1.0.0.2.ip6.arpa. You never have to type it: dig -x builds it from the normal address.
Because your server has a whole /64, you can ask for PTR records on more than one address, for example the main ::1 and a separate mail address ::25 that you configured as described in adding IPv6 addresses. List each address and its name in the ticket.
When sending mail over IPv6, make sure the outgoing address is the one with the PTR. Postfix uses smtp_bind_address6 for that. Large receivers are often stricter with IPv6 senders than with IPv4, so a working PTR on IPv6 is not optional for mail.
What can go wrong after the change?
Most problems come from one of four causes:
- Stale cache: your local resolver remembers the old answer. Test against another resolver with
dig -x 203.0.113.10 @9.9.9.9. - Forward record missing or different: the PTR is fine but FCrDNS fails. Fix the A or AAAA record.
- Wrong address in the ticket: double check the IP on the server page.
- Mail still rejected: rDNS is one check of several. Also set up SPF, DKIM and DMARC TXT records, described in how DNS works.
Questions about this guide
Can I change reverse DNS myself in the console?
No. Reverse DNS is set by support. Open a ticket with the IP address and hostname once the forward record exists.
Does a rebuild remove my PTR record?
No. The record belongs to the address, and a rebuild keeps the address. Deleting the server releases the address, and the PTR goes with it.
Do I need reverse DNS for a website?
Not really. Browsers never check it. It matters for mail, some IRC networks and a few logging or allowlist tools.
Can one address have two PTR records?
It is technically possible but causes confusion in FCrDNS checks. Use one name per address.
Why is my default PTR a generic name?
Until you ask for a change, the address has a neutral default name or none. That is fine for anything except mail.
Does reverse DNS help with outgoing mail on port 25?
It is required for good delivery, but outgoing port 25 itself is opened through support. Ask about both in the same ticket.
More in Networking and security
- IPv4 and IPv6 addresses
- Add IPv6 addresses
- Static network setup
- Networking terms
- How the VPS network works
- How DNS works
- Private networking
- Private link with WireGuard
- Failover and floating IPs
- Firewall rules explained
- Load balancing explained
- HAProxy load balancer
- TLS certificates explained
- SSH hardening
- Firewall setup
- Point a domain