Nslookup

A DNS record is stored on a DNS (Domain Name System) server, and every internet connection uses these servers to convert hostnames into IP addresses. This means that when you type google.com, a DNS service will query its website database, and serve you an IP address for that website. Then, you can connect via internet protocol (IP) to the host server.

But when you are having problems with your DNS lookup service, one way to diagnose these problems is via the nslookup tool in Command Prompt.

nslookup is an abbreviation of name server lookup and allows you to query your DNS service. The tool is typically used to obtain a domain name via your command line interface (CLI), receive IP address mapping details, and lookup DNS records. This information is retrieved from the DNS cache of your chosen DNS server.

There are two primary functions included with nslookup. The first is DNS lookup, whereby you enter a domain URL and retrieve the corresponding server IP address. You can also reverse this process and enter an IP address to retrieve the corresponding domain URL.