Change the name of the original server used for queries. Query and Print A Type Records We will start with a simple and general example. To run nslookup on Microsoft Windows, follow these steps: Open a DOS command window. If you want to look up IP address of a website then type nslookup in the command prompt and press enter. Let’s dig in and learn some of these tricks!

Converting a domain name to its IP address using the nslookup command is one of …
Nslookup has two modes: interactive and noninteractive. The command-line length must be less than 256 characters. The Nslookup command line command allows you to displays information that you can use to diagnose Domain Name System (DNS) infrastructure. Most people know the basic nslookup command for checking a host name’s IP or IP’s hostname but not many know to use all the other cool features like specifying the DNS server to use or choosing what type of record to query for a given IP and so on. I want to inspect TXT records for my domain, such as SPF records. The class specifies the protocol group of the information.Turns Debugging Mode on or off.Changes the name of the root server used for queries.Changes configuration settings that affect how lookups function.Turns exhaustive Debugging Mode on or off.

Note. By default, nslookup will send the DNS resolution queries to DNS servers that are configured in Windows operating system’s DNS settings.

Press “Enter”.Similarly you can convert any other domain name into its IP address. For example, to change the default query type to host (computer) information and the initial time-out to 10 seconds, type: nslookup -querytype=hinfo -timeout=10. The nslookup command can also perform a reverse lookup using an IP address to find the domain or host associated with that IP address.
We will take it up in detail in a future post.© 2020 Guiding Media Pvt Ltd. All Rights Reserved.4. We can get web server IP address, Mail Server IP address, Alternative IP addresses, DNS Management Information etc from DNS servers with the nslookup command.

Example: command.The command-line length must be less than 256 characters.An unrecognized command is interpreted as a computer name.To interrupt interactive commands at any time, press CTRL+B.To change the default query type to host (computer) information and the initial time-out to 10 seconds:To treat a built-in command as a computer name, precede it with the escape character (). While using the interactive mode, you can:

In addition, Microsoft® Windows® offers nslookup, a built-in tool for checking your DNS records from the command line.

nslookup allows itself to be used in the command-line of the operating system in question; Windows users start the service via the command prompt, and Unix users via the terminal …