Reverse nslookup Command

by on December 3, 2009 · 7 comments· LAST UPDATED December 3, 2010

in

How do I use nslookup command line administrative tool for testing and troubleshooting DNS servers including reverse lookup under UNIX or Windows operating systems? How do I look up an IP address of a domain or host on a network using nslookup command?

nslookup is a UNIX or Windows (nslookup.exe)program to query Internet domain name servers. Nslookup has two modes: interactive and non-interactive. Interactive mode allows the user to query name servers for information about various hosts and domains or to print a list of hosts in a domain. Non-interactive mode is used to print just the name and requested information for a host or domain.

UNIX Example

To find out an IP address of cyberciti.biz, enter:
$ nslookup cyberciti.biz
Sample outputs:

Server:		127.0.0.1
Address:	127.0.0.1#53
Non-authoritative answer:
Name:	cyberciti.biz
Address: 75.126.153.206

You can run reverse ip lookup as follows:
$ nslookup 75.126.153.206
Sample outputs:

Server:		127.0.0.1
Address:	127.0.0.1#53
Non-authoritative answer:
206.153.126.75.in-addr.arpa	name = www.cyberciti.biz.
Authoritative answers can be found from:
153.126.75.in-addr.arpa	nameserver = ns2.arpa.global-datacenter.com.
153.126.75.in-addr.arpa	nameserver = ns1.arpa.global-datacenter.com.
ns1.arpa.global-datacenter.com	internet address = 67.228.254.20
ns2.arpa.global-datacenter.com	internet address = 67.228.255.20
ns2.arpa.global-datacenter.com	has AAAA address 2607:f0d0:0:15:2000::1

MS-Windows Example

To perform a reverse lookup on an IP address 75.126.153.206, enter (open MS-DOS prompt by clicking on Start > Run > Type > Cmd.exe):
nslookup 75.126.153.206

Server: localhost
Address: 127.0.0.1
Name: www.cyberciti.biz
Address: 75.126.153.206

Sample session:

Fig.01: A reverse lookup on an IP address using nslookup.exe

Fig.01: A reverse lookup on an IP address using nslookup.exe

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 7 comments… read them below or add one }

1 samuel September 6, 2011 at 6:12 pm

great information

Reply

2 dofollowchecker February 29, 2012 at 10:02 pm

Thanks for this, it has been bugging me, now to figure out the Reverse IP lookup – IPv6.

Reply

3 Stuart January 24, 2014 at 8:39 pm

Yes, this is the magic question, isn’t it? IPv6 reverse lookup is not working with my microsoft nslookup on a machine on a hybrid network.

Reply

4 P May 4, 2012 at 5:13 am

in the sample session the Server is Unknown I do I get that to show up?

Reply

5 Saeed Neamati November 19, 2012 at 10:07 am

Good and simple replacement for network-tools website. I guess nslookup should be able to solve almost all of the requirements related to DNS.

Reply

6 mohammada ali June 14, 2013 at 11:31 am

clearfy about foward lookup and reverse lookup zone

Reply

7 erm3nda September 12, 2013 at 5:01 am

Looks cool, but…

If you`re using reverse IP you also want to show all records, not just the first one.
You cant list all websites using lookup ip.

It’s a problem of options set or a lack of nslookup tool?
Can i list all websites on a ip with nslookup?

Regards.

Reply

Leave a Comment

Tagged as: , , , , , , , , , , , , , , , , ,

Previous Faq:

Next Faq: