How to Set Up Reverse DNS (rDNS/PTR) for Better Email Deliverability on a VPS

Why Reverse DNS (rDNS/PTR) Matters

Reverse DNS (rDNS), also known as a PTR record, is one of the most important requirements for sending email from a VPS. Mail providers such as Gmail, Outlook, Yahoo, and many corporate email gateways check the reverse DNS of the sending IP before deciding whether to accept or filter your messages.

If your VPS does not have a properly configured PTR record, your emails are much more likely to be marked as spam or rejected.

What is a PTR Record?

A PTR (Pointer) record maps your server's IP address back to a hostname.

Example:

IP Address:

203.0.113.10

Hostname:

mail.example.com

The reverse lookup should return:

203.0.113.10 → mail.example.com

At the same time, the hostname should resolve back to the same IP using an A record.

Recommended DNS Configuration

Create the following DNS records:

A Record

mail.example.com → 203.0.113.10

PTR Record

203.0.113.10 → mail.example.com

This forward-confirmed reverse DNS (FCrDNS) helps improve sender reputation.

How to Verify Your Hostname

Run the following command:

hostnamectl

If necessary, change your hostname:

hostnamectl set-hostname mail.example.com

Check Reverse DNS

Use one of these commands:

dig -x YOUR_SERVER_IP

or

host YOUR_SERVER_IP

The output should display your mail hostname.

Verify Forward DNS

Confirm that the hostname resolves correctly:

dig mail.example.com

The returned IP should match your VPS IP.

Best Practices

  • Use a Fully Qualified Domain Name (FQDN).
  • Match the server hostname with the PTR record.
  • Configure SPF, DKIM, and DMARC together with rDNS.
  • Avoid generic hostnames like localhost.
  • Keep forward and reverse DNS synchronized.
  • Use a dedicated IPv4 address for email services whenever possible.

Common Problems

  • PTR record points to the wrong hostname.
  • No matching A record exists.
  • Using dynamic or residential IP addresses.
  • Hostname changes without updating DNS.
  • Missing SPF, DKIM, or DMARC records.

Frequently Asked Questions

Does rDNS improve inbox placement?

Yes. While it is not the only factor, proper reverse DNS significantly improves email reputation and increases the likelihood of successful delivery.

Who can configure a PTR record?

Only the owner of the IP address or the VPS hosting provider can create or modify PTR records.

Is rDNS required for email marketing?

Yes. Nearly all professional email infrastructures require valid reverse DNS before sending production email.

Conclusion

Proper reverse DNS configuration is a fundamental step for every VPS used for email services. Combined with SPF, DKIM, DMARC, and a dedicated IPv4 address, it helps establish trust with receiving mail servers and improves long-term email deliverability.

  • rdns, rDNS setup
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Order a VPS with a Dedicated IPv4 for Email Marketing

When doing email marketing, having a VPS with a dedicated IPv4 is crucial for reputation and...

Why PTR/rDNS is Important for Email Marketing and How to Set It Up

PTR (also known as rDNS) is a crucial DNS record that links your IP address to your domain name....

How to Configure Your Email Server for Better Inbox Delivery

Properly configuring your email server is key to getting your emails into inboxes, not spam....

IP Warming Strategies for New IP Addresses in Email Marketing

New IPs used for email marketing need to be warmed up to build a good sending reputation. Here’s...

Common Pitfalls to Avoid in Email Marketing with VPS

Email marketing from a VPS can be powerful, but you need to avoid these common pitfalls:...