What is a PTR record?

Ruth Turner
Published: 14 November 2018Last updated: 27 April 2024
Share:

PTR (or DNS pointer records) are records that associate a domain name with an IP address. They serve as the reverse of an A record – rather than having a hostname or domain associated with an IP address, the IP address is instead associated with a hostname. These can be used in reverse DNS lookups, providing the hostname or domain when the IP is queried.

How do I set up a PTR record on Shared Hosting?

In order to set up PTR records with 20i, you’d need one of our Self-Managed solutions – it isn’t currently possible to set up a PTR record on the 20i shared hosting or Managed Cloud hosting. 

How do I set up a PTR record on a Self-Managed VPS?

Many people like to configure reverse DNS for their virtual machine IP address(es). This is often done for several reasons, with the main purpose generally being white-labelling.

To do this:

  • Choose Manage VPS in My20i
  • Select Options > Manage for the VPS you intend to do this with.
  • Select Manage IP Addressing.

You should then see the IP address, subnet mask, default gateway, and hostname for the virtual machine, the latter of which can be changed.

To configure reverse DNS, the hostname you intend to use must be set to point to the VPS beforehand.

For example, if the IP address you were doing this for was 185.151.31.186, and you wanted to use 20isupport.com as the hostname, you would point the non-www A record for 20isupport.com to 185.151.31.186. This process would be the same for any hostname you wish to use.

Once you have the appropriate A record in place, select Edit under Hostname.

Enter the hostname you want to use - which should have been configured to point to the IP address you’re doing this for beforehand - and Save.