Howto use dig check PTR record

dig (as known as “domain internet groper”) is a utility that can talk directly to name servers in order to gather detailed domain name related information.

DNS is used to resolve a host name or alias into IP address,so that your computer can find the resource you’re looking for. However, it’s also possible to supply reverse information — to find the host name associated with a numeric IP address. This is called “reverse-resolving” or “reverse DNS” or “PTR” record. PTR is much helpful when you are sending out mails, some anti-spam gateways check PTR records to identify spamers.

We can use dig to find out whether any given IP address has a PTR record or not. To do a PTR lookup with dig, we must first convert the IP address into a host-name-like construct by reversing the order of the octets and then appending a suffix “” — for example, given the address we transform this address into a strings “” and then use it with the “dig ptr” command:

admon:~ google$ dig ptr

[…bla bla bla…]


[…bla bla bla…]

We got our answer in the answer section:

If you use command “host”, things may be much easier, and the command is: “host”

Share this post

5 thoughts on “Howto use dig check PTR record

  1. While searching for Blogs about Howto use dig check PTR record | Planet Admon I found your site. Thank you for the effort you have put in.

  2. I’m now not positive where you are getting your info, however good topic. I must spend a while learning more or figuring out more. Thank you for fantastic info I used to be searching for this info for my mission.

Post Comment