A PTR record is a DNS record that performs reverse DNS lookup — it associates an IP address with a domain name. This is essential for VPS users who need to configure email servers or improve deliverability, as many mail servers verify PTR records to prevent spam. This guide shows you how to set up a PTR record for your VPS.

Background: What is a PTR Record?

You might be familiar with Domain Name System (DNS) records such as A records and hostnames. A PTR record is another type of DNS record, akin to an A record. However, unlike the A record, which associates a domain name with an IP address, a PTR record performs the reverse: it associates/resolves an IP address to a domain or hostname.

Consider this scenario: You're searching for a domain, let's say example.com, with the IP address 22.33.44.55 using your browser. The A record assists your computer in recognizing that it should redirect you to the corresponding IP address, in this case, 22.33.44.55. Once that association is resolved, the PTR record promptly redirects you from the IP address back to the domain example.com.

How it works:

Browser search term → A record = IP address

IP address → PTR record = domain

Requirements

The primary requirement for configuring a PTR record is a dedicated IP address. As a result, only users of VPS or dedicated hosting have the ability to create/set a PTR record.

Moreover, it is more feasible to establish a reverse DNS for a specific IP only when that IP address is directed towards the designated domain.

How to Set Up a PTR Record

  1. Step 1: Add an A Record

    Add an A record to link the domain to the IP address of your VPS. This ensures that forward DNS resolution works correctly before setting up reverse DNS.

  2. Step 2: Wait for DNS Propagation

    Allow time for the completion of DNS propagation. This can take up to 24 hours for the changes to reflect across all nameservers.

  3. Step 3: Add the PTR Record

    Access the Server Management section in your VPS control panel to add a PTR record. After creating the PTR record, it will initiate DNS propagation, and it may take up to 24 hours for the changes to reflect across all your nameservers.