nslookup

IDevice Icon nslookup
The nslookup command queries a DNS nameserver. It can be run in interactive mode. If no host name is provided, then the program enters interactive mode. By default, the DNS server specified in 

    /etc/resolv.conf

is used unless another is specified. If we want to specify a server but not look up a specified host, we must provide a - in place of the host. The syntax is

> nslookup [host|-[server]]