What is a PTR record?
A pointer (PTR) record is a type of Domain Name System (DNS) record that resolves an IP address to a domain or host name, unlike an A record which points a domain name to an IP address.
Meaning, that A record helps your computer to understand, that when accessing google.com, you should be redirected to 188.8.131.52. PTR record, on the other side, helps to understand that 184.108.40.206 should redirect to domain.tld (where 220.127.116.11 is your hosting IP and domain.tld is your domain name).
How to add a PTR record?
Unlike A record, PTR record should be created on your server’s part. At Hostinger, you can create a PTR record in the Server Management section of your VPS order. Any DNS Record changes trigger propagation, which can last up to 24 hours to fully propagate.
What are the requirements to set a PTR record?
For PTR record a dedicated IP address is required, so it can be set up on VPS only. A comprehensive guide about PTR records can be found in this article.
Also, you can set reverse DNS on your IP only when the mentioned domain is pointing to the mentioned IP.
So if you have VPS (18.104.22.168) and domain (domain.tld), the whole process for you would be the following:
- Point domain to your VPS by A record
- Wait for the propagation to be completed
- Create a PTR record at your VPS
If you create a PTR record before the domain is pointing to the VPS IP, you will receive an error:
Record domain.tld IN A 22.214.171.124 not exist. If you have added the DNS record recently, allow a few hours for DNS to propagate.