About Linux FAQ

Browse More FAQs:

How to test or check reverse DNS

Posted by Vivek Gite [Last updated: October 24, 2007]

Q. How do I test or check reverse DNS for given IP address under Linux or Windows XP/Server 2003?

A. Reverse DNS lookup (also known as rDNS) is a process to determine the hostname associated with a given IP address.

Typically, the DNS is used to determine what IP address is associated with a given hostname; so to reverse resolve a known IP address is to lookup what the associated hostname for it. A reverse lookup is often referred to simply as reverse resolving, or more specifically reverse DNS lookups.

The most common uses of the reverse DNS are:
=> Anti-spam
=> Network troubleshooting
=> Avoid spammers and phishers using a forward confirmed reverse DNS etc

You can use standard UNIX / Linux utilities such as nslookup, dig or hosts to find out reverse DNS of a given IP address.

Task: Find Reverse DNS for IP 75.126.43.235 under Linux/UNIX

$ host 75.126.43.235
Output:

235.43.126.75.in-addr.arpa domain name pointer cyberciti.org.

IP 75.126.43.235 is reverse mapped to cyberciti.org.

Task: Find Reverse DNS for IP 75.126.43.235 under Linux/UNIX/Windows

nslookup works under Windows and UNIX like oses:
nslookup 75.126.43.235
Output:

Server:         208.67.222.222
Address:        208.67.222.222#53

Non-authoritative answer:
235.43.126.75.in-addr.arpa      name = cyberciti.org.

Authoritative answers can be found from:

Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

Related Other Helpful FAQs:

Discussion on This FAQ

  1. Sha8e Says:

    Vivek,

    How r u man?
    Vivek, how can I do a reverse ip check to a domain or box in order to know what websites is hosted on that box ?

    I need a linux COMMAND not solving it using a website. Can u help me ?

  2. Mohammad Mateen Says:

    its very simple

    dig -x IP (209.267.166.166)

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , ,

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.