What is PTR Record?

ClouDNS
3 min readJun 22, 2020

--

PTR records are used for the Reverse DNS (Domain Name System) lookup. Using the IP address you can get the associated domain/hostname. An A record should exist for every PTR record. The usage of a reverse DNS setup for a mail server is a good solution.

While in the domain DNS zone the hostname is pointed to an IP address, using the reverse zone allows to point an IP address to a hostname.
In the Reverse DNS zone, you need to use a PTR Record. The PTR Record resolves the IP address to a domain/hostname.

Why you need a PTR records?

PTR records provides trust that the given hostname or a domain are connected to the IP address. The PTR records are must have for outgoing mail servers, because most of the mail providers reject or mark as spam messages received by mail servers without valid reverse dns configuration (missing PTR or missmatch A record for the hostname).

How to create PTR record?

In order to create a PTR record, at first need to be created a Reverse DNS zone ( read more about the reverse dns zones here). The reverse DNS zone depends on the size of your IP network. In our example we will use an IPv4 /24 network. In the /24 network, you have 255 unique IP addresses. For an example, if our network is 192.168.0.0/24, the available IPs in this network are from 192.168.0.1 to 192.168.0.255 and our reverse zone has following format: 0.168.192.in-addr.arpa

In order to create a reverse DNS zone go to the Control Panel, click on the Add new zone button and choose Master Reverse DNS zone and fill the reverse zone name of your IP network. In our case this is 0.168.192.in-addr.arpa

Now in our reverse zone 0.168.192.in-addr.arpa we can add PTR records for each IP from the network. From the button “Add new record” we can add new PTR record and here are few examples for the first two IP address:

For 192.168.0.1:

Type: PTR
Host: 1
Points to: hostname1.example.com

For 192.168.0.2:

Type: PTR
Host: 2
Points to: hostname2.example.com

After creating the PTR record, make sure that the hosts have corresponding A records. In our example, hostname1.example.com must be with A record pointed to 192.168.0.1 and hostname2.example.com with 192.168.0.2

To be completed the reverse DNS configuration, you need to change the name servers of your reverse zone at your IP provider or ask him to assist you with the modification. In our case, there must be configured NS records at the IP provider pointed to the name servers listed at the dashboard of your control panel.

Supported reverse dns zones

ClouDNS supports Reverse DNS zones both for IPv4 and IPv6 networks. Just write to our technical support, if you need any assistance with the configuration of the Reverse DNS and PTR records for your network and IPs.

How to start managing PTR records with ClouDNS?

  1. Open free trial account from here — free for 30 days, regular price $2.95/month for 25 DNS zones (both reverse dns and domain names)
  2. Verify your e-mail address
  3. Log into your control panel
  4. Create new Reverse DNS from the [add new] button — read more here
  5. Add the PTR records as it is described in this article

Originally published at https://www.cloudns.net.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

ClouDNS
ClouDNS

Written by ClouDNS

ClouDNS is one of the biggest providers of global Managed DNS services, including GeoDNS, Anycast DNS and DDoS protected DNS.

No responses yet

Write a response