Internet, Networking, & Security Around the Web 97 97 people found this article helpful What the NSLOOKUP Tool Can Tell You About Internet Domains The nslookup command displays information about internet servers by Bradley Mitchell Writer An MIT graduate who brings years of technical experience to articles on SEO, computers, and wireless networking. our editorial process LinkedIn Bradley Mitchell Updated on November 12, 2019 Around the Web Browsers Cloud Services Error Messages Family Tech Home Networking 5G Antivirus VPN Web Development Around the Web View More Tweet Share Email The nslookup (which stands for name server lookup) command finds name server information for domains by querying the Domain Name System. How to Use nslookup in Windows Lifewire To use the Windows version of nslookup, open Command Prompt and type nslookup to get a result similar to this one but with entries for the DNS server and IP address that your computer is using: C:\> nslookupServer: resolver1.opendns.comAddress: 184.108.40.206> This command identifies which DNS server the computer is currently configured to use for its DNS lookups. As the example shows, this computer is using an OpenDNS DNS server. Take note of the prompt at the bottom of the command's output. nslookup remains running in the foreground after the command executes. The prompt at the end of the output lets you enter additional parameters. When you execute nslookup without specifying a domain name, the program enters interactive mode. Either type the domain name you want the nslookup details for or quit nslookup with the exit command (or the Ctrl+C keyboard shortcut). You could instead use nslookup by typing the command before the domain, all on the same line: nsloo Here's an example output: > nslookup lifewire.comNon-authoritative answer:Name: lifewire.comAddresses: 220.127.116.11 18.104.22.168 22.214.171.124 126.96.36.199 Nameserver Lookup In DNS, so-called "non-authoritative answers" refer to DNS records kept on external DNS servers, which they obtained from the "authoritative" servers that provide the original source of the data. Here's how to get that information (assuming you've already typed nslookup into Command Prompt): >set type=ns>lifewire.com[...]dns1.p08.nsone.net internet address = 188.8.131.52dns2.p08.nsone.net internet address = 184.108.40.206dns3.p08.nsone.net internet address = 220.127.116.11dns4.p08.nsone.net internet address = 18.104.22.168ns1.p30.dynect.net internet address = 22.214.171.124ns2.p30.dynect.net internet address = 126.96.36.199ns3.p30.dynect.net internet address = 188.8.131.52ns4.p30.dynect.net internet address = 184.108.40.206> An authoritative address lookup can be performed by specifying one of the domain's registered nameservers. Nslookup then uses that server instead of the default DNS server information of the local system. C:\>nslookup lifewire.com ns1.p30.dynect.netServer: ns1.p30.dynect.netAddress: 220.127.116.11Name: lifewire.comAddresses: 18.104.22.168 22.214.171.124 126.96.36.199 188.8.131.52 The output no longer mentions "non-authoritative" data because the nameserver ns1.p30.dynect is a primary nameserver for Lifewire.com, as listed in the "NS record" portion of its DNS entries. Mail Server Lookup To search for mail server information on a particular domain, nslookup uses the MX record feature of DNS. Some sites, like Lifewire.com, support both primary and backup servers. Mail server queries for Lifewire.com work like this: > set type=mx> lifewire.com[...]Non-authoritative answer:lifewire.com MX preference = 20, mail exchanger = ALT1.ASPMX.L.GOOGLE.comlifewire.com MX preference = 10, mail exchanger = ASPMX.L.GOOGLE.comlifewire.com MX preference = 50, mail exchanger = ALT4.ASPMX.L.GOOGLE.comlifewire.com MX preference = 40, mail exchanger = ALT3.ASPMX.L.GOOGLE.comlifewire.com MX preference = 30, mail exchanger = ALT2.ASPMX.L.GOOGLE.com Other nslookup Queries Nslookup supports querying against other less commonly used DNS records including CNAME, PTR, and SOA. Typing a question mark at the prompt prints the program's help instructions. Some web-based variations of the utility offer a few additional features beyond the standard parameters found within the Windows tool. How to Use Online Nslookup Tools Online nslookup utilities, like the one from Network-Tools.com, lets you customize a lot more than what's allowed with the command from Windows. For example, after choosing the domain, server, and port, you can pick from a drop-down list of query types like address, nameserver, canonical name, start of authority, mailbox domain, mail group member, well-known services, mail exchange, ISDN address, NSAP address, and many others.