Knowledge Base
MilesWeb / Domain Name & DNS Issues

What Is A PTR Record & How To Add PTR Record?

Approx. read time : 3 min

PTR record essentially resolves an IP address to a fully qualified domain name (FQDN) or map a network interface contrary to what A record does. PTR records are also called Reverse DNS records.

They are deployed for rDNS (Reverse Domain Name System) lookup. It helps in obtaining hostname or domain of the IP. The owner of the IPs is usually the ISP, the web hosting provider, or owned group directly assigned by ARIN.

Nowadays almost all external mail exchange servers perform reverse DNS (rDNS) lookups prior to accepting messages originating from sending mail servers.  Hence, it is recommended to set rDNS for a mail server.

By using the following commands in Linux we can check if there is the PTR record set or not for any IP.

# host IP

or

# dig -x IP     (Replace IP with the actual IP)

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6_6.3 <<>> -x 20.xx.x.xx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4311
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;xx.x.xx.20.in-addr.arpa. IN PTR

;; ANSWER SECTION:
xx.x.xx.20.in-addr.arpa. 14399 IN PTR rdns-20.xx.x.exampledomain.com.

;; Query time: 334 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sun Dec 6 20:36:54 2015
;; MSG SIZE rcvd: 92

OR

# host IP  (Replace IP with the actual IP)

xx.x.xx.20.in-addr.arpa domain name pointer rdns-20.xx.x.exampledomain.com.

For Windows you can open cmd or PowerShell and run the following command to obtain the output.

nslookup IP

Firstly, the reverse DNS zone need to be created on the authoritative DNS nameserver for the required IP.

Say you are in control & able to access  the authoritative nameserver, then the first step would be to create a rDNS zone. It has be be in a specific format. It begins with a portion of  IP address written backward followed by .in-addr.arpa.

For instance your IP addr  is 20.xx.x.xx, you begin by dropping the final octet (last set of numbers) to give you 20.xx.x.

Next, you need to reverse that fragment of the IP address giving you: x.xx.20. Now, append .in-addr.arpa. to set the reverse zone domain of: 20.xx.x.in-addr.arpa.

– Creating PTR Record.

Once done with the creation of zone file we can move ahead to create the PTR record.

Edit in-addr.arpa of the zone and for the Canonical Hostname, set the domain name of your choice you would want the IP address to resolve to, for example, myhostptr.domain.com

Save the DNS zone file after you’ve set the PTR or rDNS. NOTE: it will take sometime for the propagation.

For clients with MilesWeb, PTR record are set after receiving proper justification at support@milesweb.com. Only one single PTR record will be set instead of multiple.

 

Trusted By Thousands of Clients & Big Businesses

We highly appreciate the kind and stellar feedback we receive from our customers. Delivering the best is our goal! MilesWeb is rated Excellent out of 5 based on reviews. Read more reviews.

Excellent
Based on reviews
2 hours ago
Perfect and Valuable Server + ...
I am using MilesWeb Servers, The main thing which I getting are continuous support over everything w...
Gunjan Makwana
4 hours ago
Milesweb is superb Hosting pro...
Milesweb is superb Hosting provider ever, their Support team is amazing!!!...
Abhishek Singh
15 hours ago
Great support in great timing...
We need urgent assistance on changes in a primary domain on our client's Cpanel accounts and reached...
Riyaju Deen
21 hours ago
Best Website Hosting platform ...
I was new on MilesWeb. And needed help on multiple areas from setting up to getting started with cre...
Harshada
1 days ago
Very quick and helpful assista...
Very quick and helpful assistance. Support person listened properly and provided a nice solution....
Narendra
1 days ago
the team is very supportive th...
the team is very supportive though at times effort needs to be made to make understand the problem s...
Suree Sharma
1 days ago
I am using miles web for 3plus...
I am using miles web for 3plus years, very quick and perfect support by the team, they helped me man...
Sri Raghav
2 days ago
The service is good...
The service is good. They are answering with patience and doing the needful as soon as possible....
MR
2 days ago
Perfect and Valuable Server + ...
I am using MilesWeb Servers, The main thing which I getting are continuous support over everything w...
Gunjan Makwana
3 days ago
Very quick and helpful assista...
Very quick and helpful assistance. Support person listened properly and provided a nice solution....
Narendra
4 days ago
positively helped me with find...
positively helped me with finding insecure content on my website causing SSL to not work properly on...
Thaviraj Junglee
4 days ago
Exceptional support, Truly Pra...
I had opted for the basic wordpress hosting plan as I intended to experiment with various plug-ins. ...
Aseem Chandna