What is the purpose of nslookup command? nslookup (from name server lookup) is a network administration command-line tool for querying the Domain Name System (DNS) to obtain the mapping between domain name and IP address, or other DNS records.
nslookup use specific dns server You may choose to use a DNS server other than your primary DNS server. To do this, type nslookup, followed by the name of the domain you wish to query, and then the name or IP address of the DNS server you wish to use.