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.
To find out an IP address of sxi.io, enter:
$ nslookup sxi.io
Server: 127.0.0.1 Address: 127.0.0.1#53 Non-authoritative answer: Name: sxi.io Address: 184.108.40.206
You can run reverse ip lookup as follows:
$ nslookup 220.127.116.11
Server: 127.0.0.1 Address: 127.0.0.1#53 Non-authoritative answer: 18.104.22.168.in-addr.arpa name = sxi.io. 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 = 22.214.171.124 ns2.arpa.global-datacenter.com internet address = 126.96.36.199 ns2.arpa.global-datacenter.com has AAAA address 2607:f0d0:0:15:2000::1
To perform a reverse lookup on an IP address 188.8.131.52, enter (open MS-DOS prompt by clicking on Start > Run > Type > Cmd.exe):
Server: localhost Address: 127.0.0.1 Name: sxi.io Address: 184.108.40.206