What is PTR registration and how to do Reverse IP check?

Login

There are many types of DNS records. It may be difficult for beginners to determine which DNS record is required or how it is set up. In this article, you will learn how to check the PTR record and whether it is set for an IP address.

What is PTR recording?

In short, the PTR record is like an inverted version of the A record. A record maps the domain name to an IP address. PTR maps the IP address to a hostname. However, these two records are independent. For example, a record of hostinger.com may point to the IP address 21.21.128.xx, while 23.23.128.xx can be mapped to a completely different hostname.

Why do you need PTR registration?

Useful for outgoing mail servers. This register adds reliability to the sending server and allows the receiving party to check which host the IP address belongs to. This is an excellent form of protection against fraud domain names that use to send spam. Therefore, some major email providers, such as yahoo.com, gmail.com, perform a reverse DNS lookup before accepting incoming emails.

What will you need?

Before you begin this guide, you need the following:

  • Access your computer console (preference)

Method 1 – Query PTR with nslookup or dig

Windows and Unix-like systems (Linux, macOS) include built-in tools for checking DNS records. If you are a Windows user, follow these steps:

1. Open the Windows Start menu, cmdtype, and then press ENTER.

2. You should now see the Command Line window with a black background.

windows-command-prompt
windows-command-prompt

3. Run the following command to obtain the hostname of an IP address.

4. For example, if you wanted to check the PTR record of the IP address 54.243.154.xx, you would see an output like the one below.

As you can see, the PTR record is ec2-54-243-154-49.hostinger.com.

The process is similar for Linux and Mac users.

1.  In macOS, open Terminal. On most Linux operating systems, you can open the Terminal by pressing Ctrl + Alt + T.

2. Use the following command to check the PTR recording.

  3. For example, the output of the IP address 54.243.154.xx would be as follows.

 

You can see the PTR record in the  ANSWER SECTION as ec2-54-243-154-49.hostinger.com.

Method 2 – PTR query with online tools

Another way to find out the hostname of an IP address is to use online callback tools such as MxToolBox . All you need to do is enter the IP address in the field and click the Reverse Lookup button.

mxtoolbox-reverse-lookup
mxtoolbox-reverse-lookup

I hope it has been a useful article.