Reverse DNS (rDNS/PTR records) map your IP address back to a hostname. For email servers, your PTR must point to your mail hostname (mail.yourdomain.com) and that hostname must resolve back to the same IP. Set PTR records in your VPS provider's control panel — not your DNS provider. Hetzner, DigitalOcean, Vultr, OVH, and Linode all offer self-service PTR configuration. AWS requires an Elastic IP and a support request.
Reverse DNS (rDNS) Setup on Major VPS Providers
Reverse DNS: Provider-by-Provider Setup
Every email server needs a PTR record. Without it, most mailbox providers will reject or spam your email. For background on how PTR fits into email infrastructure, see our PTR records guide and VPS comparison. This guide covers PTR setup on every major VPS provider.
What You Need
Before configuring rDNS:
- Your mail hostname — typically
mail.yourdomain.com - A forward A record —
mail.yourdomain.com → YOUR.SERVER.IP - Your server IP — the VPS's primary IPv4 address
The PTR record creates the reverse mapping: YOUR.SERVER.IP → mail.yourdomain.com
Hetzner Cloud
- Log into console.hetzner.cloud
- Select your project → select the server
- Click Networking in the left sidebar
- Under Primary IPv4, click the IP address
- In the Reverse DNS field, enter
mail.yourdomain.com - Click Save
For IPv6 (if needed):
- Same location, under Primary IPv6
- Enter the PTR for the specific IPv6 address your server uses
Propagation: Usually immediate. Verify within 5 minutes.
DigitalOcean
DigitalOcean derives PTR records from your droplet's name:
Method 1: Rename Droplet
- Log into cloud.digitalocean.com
- Select your droplet
- Click the droplet name at the top
- Rename to
mail.yourdomain.com - PTR updates automatically
Method 2: API
curl -X PATCH "https://api.digitalocean.com/v2/droplets/DROPLET_ID" \
-H "Authorization: Bearer $DO_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "mail.yourdomain.com"}'
Note: DigitalOcean's PTR system is unusual — it's tied to the droplet name. If you rename the droplet for other reasons, the PTR changes too.
Propagation: 5-30 minutes.
Vultr
- Log into my.vultr.com
- Select your instance
- Click Settings tab
- Scroll to IPv4 section
- Click the Reverse DNS button (pencil icon) next to your IP
- Enter
mail.yourdomain.com - Click the checkmark to save
For IPv6:
- Same page, under IPv6 section
- Click Reverse DNS for your IPv6 address
Propagation: Usually within 5-10 minutes.
OVH / OVHcloud
- Log into ovh.com/manager
- Navigate to Bare Metal Cloud → IP (or Public Cloud → IP for cloud instances)
- Find your IP address in the list
- Click the ... menu → Modify reverse
- Enter
mail.yourdomain.com - Click Confirm
Note: OVH requires the forward A record to exist before accepting the PTR. Create the A record first.
Propagation: Can take up to 24 hours. Typically 1-4 hours.
Linode (Akamai)
- Log into cloud.linode.com
- Select your Linode
- Click the Network tab
- Under IPv4 Addresses, click Edit RDNS next to your IP
- Enter
mail.yourdomain.com - Click Save
Note: Linode validates the forward DNS record. Your A record must resolve to the Linode's IP before the PTR is accepted.
Propagation: Usually within 15 minutes.
AWS (EC2 / Lightsail)
AWS requires extra steps:
- Assign an Elastic IP to your instance (PTR can't be set on dynamic IPs)
- Submit a request via the AWS rDNS request form
- Fill in your Elastic IP, desired PTR record, and use case
- Wait for approval — typically 1-3 business days
AWS also blocks port 25 by default. You must separately request SMTP sending capability through the same form.
Propagation: After approval, usually 24-48 hours.
Verification
After setting the PTR, verify from multiple sources:
# Check from Google's DNS
dig -x YOUR.IP @8.8.8.8 +short
# Expected: mail.yourdomain.com.
# Check from Cloudflare's DNS
dig -x YOUR.IP @1.1.1.1 +short
# Expected: mail.yourdomain.com.
# Verify forward-confirmed rDNS
dig mail.yourdomain.com @8.8.8.8 +short
# Expected: YOUR.IP
# Full SMTP check
# Send email to [email protected]
# The reply includes PTR verification
Common Issues
PTR Doesn't Match EHLO
Your Postfix myhostname must match your PTR record:
postconf myhostname
# Must return: mail.yourdomain.com
# Fix if wrong:
sudo postconf -e "myhostname = mail.yourdomain.com"
sudo systemctl restart postfix
Provider Requires Forward DNS First
OVH and Linode validate that the A record exists before accepting a PTR. Create the A record and wait for propagation before setting the PTR.
Multiple IPs, Wrong One Used
If your server has multiple IPs, verify which one Postfix uses for outbound:
postconf smtp_bind_address
# If empty, Postfix uses the default route IP
Set the PTR on the IP Postfix actually sends from.
Practitioner note: I've wasted more time on DigitalOcean's droplet-name-as-PTR system than I care to admit. Clients rename their droplet to something descriptive like "production-email-v2" and wonder why their PTR changed. If you use DigitalOcean for email, treat the droplet name as a PTR configuration field, not a label.
Practitioner note: AWS is the worst provider for self-hosted email. Port 25 blocked by default, PTR requires a support request, and the approval process can take days. If a client insists on AWS, I recommend using SES for sending and running the mailbox server elsewhere. Don't fight AWS's email restrictions — they're there for a reason, and working around them is painful.
If you need help configuring reverse DNS or debugging PTR-related delivery failures, schedule a consultation — I'll verify your complete DNS chain across all providers.
Sources
- Hetzner: Cloud Networking Docs
- DigitalOcean: PTR Records
- Vultr: Reverse DNS
- AWS: Elastic IP rDNS
v1.0 · April 2026
Frequently Asked Questions
Why can't I set the PTR record at my DNS provider?
PTR records belong to the IP address owner — your VPS provider, not your domain's DNS host. Your DNS provider manages forward DNS (domain → IP). The VPS provider manages reverse DNS (IP → domain). They're two different zones maintained by two different parties.
How do I verify my reverse DNS is correct?
Run 'dig -x YOUR.IP.ADDRESS +short' from any machine. It should return your mail hostname. Then verify the forward record: 'dig mail.yourdomain.com +short' should return the same IP. Both directions must match.
How long does reverse DNS take to update?
Most VPS providers update PTR records within minutes. Propagation to external DNS resolvers takes 15 minutes to 24 hours, depending on the previous TTL value. Test from multiple locations (Google DNS at 8.8.8.8, Cloudflare at 1.1.1.1) to confirm.
Do I need reverse DNS for both IPv4 and IPv6?
If your mail server sends over IPv6, yes. Many self-hosted setups disable IPv6 for outbound SMTP to avoid managing two PTR records. If you use IPv6, both PTR records must be configured identically.
Want this handled for you?
Free 30-minute strategy call. Walk away with a plan either way.