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″

Tags: , ,

Joseph chen is a system administrator from south China. He has a keen interest in Open Source and system administration solutions.

5 Responses to “Howto use dig check PTR record”

  1. joseph says:

    In this case, the command host would be much easier. You just need to run “host″

  2. NikA says:

    I`m have make an web page to perform reverse lookup and find PTR records

  3. Address Look Up says:

    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.

  4. You can use:

    dig -x IP

    For example:

    dig -x

  5. inteligator says:

    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.

Leave a Reply

© 2006-2009 Admon Linux. All rights reserved.
Powered by Linode Japan