nslookup is a program to query Internet domain name servers. nslookup has two modes: interactive and non-interactive.