What is reverse DNS or a PTR record on a VPS?

Print
  • 0

Reverse DNS, also called a PTR record, controls what hostname an IP address resolves back to. It is most commonly used for mail servers, logging, monitoring, and reputation checks.

For normal game servers, reverse DNS usually is not required. For mail services, it matters because many mail providers expect forward DNS and reverse DNS to match.

  1. Choose a hostname you control, such as vps.example.com.
  2. Create a normal DNS A record for that hostname pointing to the VPS IP.
  3. Open your VPS service from the client area.
  4. Open the VPS control panel.
  5. Find the reverse DNS or rDNS page.
  6. Set the rDNS value to the hostname and save it.

    VPS panel Reverse DNS page showing editable rDNS records

 

What should match?

RecordExamplePurpose
Forward DNSvps.example.com -> 45.92.36.217The hostname points to the VPS IP.
Reverse DNS45.92.36.217 -> vps.example.comThe VPS IP points back to the hostname.

 

Before using it for mail

Reverse DNS is only one part of mail reputation. If you plan to send mail from the VPS, the hostname should have a matching forward DNS record, and the domain should also have SPF, DKIM, and DMARC records configured.

Do not set rDNS to a hostname you do not control. If the forward DNS record does not point back to the VPS IP, many mail systems will still treat the server as suspicious.

Reverse DNS changes can take time to propagate. If a lookup still shows the old value shortly after saving, wait and test again later.


Was this answer helpful?

Related Articles

« Back

Follow us on Social Media

Stay in the loop! Follow our social media accounts and stay up-to-date with the latest news, announcements, tips & tricks and behind-the-scenes insights!