NSLOOKUP

February 27, 2017

Reading time ~1 minute

Let's talk about nslookup, a fantastic program that I use with funceble to get information about domain(s).

What is NSLOOKUP ?

nslookup is a program that will help us or a sysadmin find out the corresponding IP address of a domain name. It can also give us the host name for an IP address.

Example

Let's try to get the information about funilrys.com

Valid domain name

$ nslookup funilrys.com
Server:        192.168.178.1
Address:    192.168.178.1#53

Non-authoritative answer:
Name:    funilrys.com
Address: 217.160.0.131
Name:    funilrys.com
Address: 2001:8d8:100f:f000::22e

Invalid domain name

$ nslookup funilrys.comm
Server:        192.168.178.1
Address:    192.168.178.1#53

** server can't find funilrys.comm: NXDOMAIN

This is pretty useful if we want to know if a domain is still active or not.

Non-authoritative answer:

 Name

It's the domain name.

Address

It's the corresponding IP (IPv6 and IPv4) address of the domain name.