nslookup – query Internet name servers interactively

nslookup – query Internet name servers interactively

nslookup [-option … ] [host-to-find | -[server ] ]


Nslookup is a 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.

nslookup is a network administration utility used to query DNS (Domain Name System) about IP address mapping or domain name or DNS related record (RR). It is also used to test and troubleshoot problems related to DNS. Linux comes with nslookup as one of the various pre-installed features.

nslookup command can be operated in two modes, namely Interactive Mode and Non-Interactive Mode. With Interactive mode, an user is allowed to query DNS server about various domains and hosts. Non-Interactive mode allows the users to query the information about a domain or host.