Nslookup Command



To run it in Windows, open the Command Prompt and run nslookup on the command line. You have searched for filenames that contain nslookup in suite buster, all sections, and architecture(s) i386. Check Point SPLAT Commands This is a list of several Check Point SPLAT commands that I use frequently. Either type the domain name you want the nslookup details for or exit nslookup with the exit command (or the Ctrl+C keyboard shortcut) to go at it a different way. shows how dig could be used from the command line to make three lookups: an ANY query for www. The Nbstat command can also be used to display NetBIOS name tables for both local and remote computers. nslookup, dig, and host are useful commands that allow you to perform DNS queries, and to test out your DNS configuration. To start the command line in Windows, click Start > Run. nslookup-type=MX grandavenueproduce. A newly installed machine will not have dig, nslookup, host commands. If you have been in this field long enough, you probably have a few favorite commands that you learned years ago and use on a regular basis, like IPCONFIG or PING. You will be told what server you are currently using for DNS. Examples of nslookup command in Linux. Using Nslookup. Useful SSH Putty Commands. To go into interactive mode, type nslookup at the command window then press Enter. Check Point SPLAT Commands This is a list of several Check Point SPLAT commands that I use frequently. It is in fact a collection of several tools lumped together. For example, you know a computer name on your network, but you forgot the IP. nslookup (name server lookup) is a command line tool that has been around for years for performing this lookup activity on demand. Nslookup has two modes interactive and non-interactive. In subcommand mode, you can enter various subcommands to set options or to perform queries. Right-click Command Prompt and select Run as Administrator. 7 dns =20 9. The nslookup command is very easy to use; you just need to type the command followed by the IP address or Web site name you want to query. Unix commands Oracle Database Tips by Donald BurlesonJanuary 10, 2015 Question: I am new to Linux and I need to know the similarities between Windows DOS commands and the equivalent UNIX/Linux commands. nslookup is a command-line administrative tool for testing and troubleshooting DNS servers (Domain Name Server). - The commands 'host' and 'nslookup' work fine if I set the stack size to "unlimited" (ulimit -s unlimited). The scary thing about it is that if your DNS is incorrectly configured, then it allows people to scan your entire DNS. nslookup has two modes: interactive and noninteractive. slookup command: NSLookup Command is one of the essential command for Linux. When no arguments or options are given, host command displays a short summary of its command line arguments and options. You should now get the MX records for "simpledns. The most common version of the program is included as part of the BIND package. - [Instructor] Hello, and welcome back…to IT Help Desk for Beginners. ??? C:\Documents and Settings\NIYAS. Command; Displays information that you can use to diagnose DNS infrastructure. The Command Line Reference Guide lists all of the command line options that are available. view filename Sort and lists the output of previous ls command(s) with more(1). I do see DC03. In simple words, if you have a name (eg google. You should use is as ping 127. [code] # nslookup google. Released with Windows 2000 and later versions, Nslookup is a command-line tool that lets you test and troubleshoot Domain Name System (DNS) resolution. Commands for administration of a DNS server: These mostly rely on the Resource Kit command line tool for DNS server administrators, known as DNSCMD. You can use nslookup to query the DNS and get information like IP address of a website, name server, domain name etc. The prompt at the end of the output lets you enter additional parameters. Re: nslookup shell script with input and output files ok great! that works well, is it possible to make a tweek request, it should not be more than a quick if statement, I don't know how errors work in nix world yet but if name or ip is resolvable can the file have. the nslookup command on the command line. View the contents of the local ARP cache table ARP-a [inet_addr] [-N if_addr] [-v] Add a static Arp entry for frequent accessed hosts ARP-s inet_addr eth_addr [if_addr] Delete. NSLookup also allows variables to be configured using the set command. set d2 Hit enter, this puts it into debugging mode, which allows you to see the Time To Live information along with other things. Example: host domain-name-of-server; nslookup - Give a host name and the command will return IP address. set all Print the current value of the frequently-used options to set Information about the current default server. As I mentioned earlier, NSlookup is simply part of Windows, so you can get access to it from the the command line. You can use it to get ip address for domain then dig further to get record info. IBM Executing DIG Commands (Replacement for NSLOOKUP) United States. From the command line on the FortiGate:. The first section specifies the server name and IP address of the host server and the second section is the endpoints' DNS server name and IP address. nslookup (name server lookup) is a command line tool that has been around for years for performing this lookup activity on demand. com Command 2 – Use wget command to get your Public IP address as below example. If a computer wants to communicate with www. Linux nslookup commands to troubleshoot dns domain name server Linux Operating System nslookup is a network administration command-line tool available for many computer operating systems for querying Domain Name System (DNS) to obtain domain name or IP address mapping or for any other specific DNS record. It works similarly to the UNIX host command. If you are new to Kali Linux world, check out the list of all available Kali Linux commands for both newbies and advance users to ease up with Terminal. So just nslookup microsoft. I wanted to combine the results of my home-grown list with the reverse lookup in easy-to-use command. exe to be captured in a variable or to throw and error, but it doesn't. KMS Troubleshooting Time Synchronization is Critical. The tool responds with a new command line interface ">" You then type i the name of the server you want to query (e. It allows a user to query DNS servers to find DNS related information. …For example, you know a computer name on your network,…but you forgot the IP address and need to look it up. Batch Script for nslookup range of IP Address 3 | P a g e Resolved IP Addresses All the resolved hosts would be stored in nslookup-results. 4 the command would be: nslookup -q=MX stackexchange. Useful SSH Putty Commands. when issuing commands like wget/curl/dig, there's DNS request for URL, but DNS always failed to response. Include the command’s output as an answer to this question: What is the numerical IP address associated with this domain name? Look up the owner’s “whois” record. This is a linux command line reference for common operations. Nslookup has two modes: interactive and non-interactive. It queries to DNS (Domain Name Server) and get the dns records for any domain for ip address. What NsLookup Does. The vulnerability is due to insufficient sanitizing of user supplied inputs in the application. One thing you should note, before using this tool, you should be familiar with how DNS works. Being able to access your system using a consistent name in the URL even though the IP address changes is what dynamic DNS is all about. The maximum length of a command line is 255 characters. It finds name server information by sending a query to the Domain Name Server (DNS) designated for your home or business. Discovering the Skype for Business Registrar May 30, 2017 by Jeff Schertz · 10 Comments This brief article walks through some common steps which can be used to locate the Fully Qualified Domain Name (FQDN) of a Lync or Skype for Business registrar from either on-premises or online environments. Follow us on Twitter. Use the query type choice to choose what type of record you would like to lookup. nslookup has two modes: interactive and noninteractive. It is use to configure client side access to the Internet Domain Name System (DNS). networking commands are not as popular as find command or grep command but they are equally important and if you working in Windows or UNIX environment you must learn them and they should. You should use is as ping 127. What does the output from the nslookup command mean? Your answer will be published for anyone to see and rate. You can also find IP address of any website’s. org, a reverse lookup of 127. 1) How to find out where you are, the pwd command shows you present working directory. penguintutor. Test nslookup can resolve DNS. How to Use Nslookup - Beginners Guide nslookup is a network administration command-line tool available for many computer operating systems. • interactive mode: no command-line parameters are required in this mode, but the user can control the tool by interactive input. 0, released on December 8, 2018. and MD etc which you probably know so we won’t get into that. The NSLookup MS-DOS command window displays two sections. To look up record types other than the default A and AAAA (and CNAME) records returned by nslookup, using the DNS server you specify: nslookup -q= For example, to return MX records for the domain stackexchange. We discuss each of its functions in the following sections. nslookup, though nslookup is generally the easier of the 2 tools to use day to day. Non-Interactive Use of nslookup Simply enter nslookup command name followed by a hostname of any website you know:. An IP Address is like a telephone number for your computer. Scripts Thread, How do I put Nslookup exit status into a variable! DelProf2. It is installed with the TCP\IP protocol suite and is available in Windows and other operating systems. Step 4: Run the same command again but replacing it with the IP Address of your local ISP’s DNS server – in my case, it is 125. Hello, I've a problem, why all the commands I type into CMD are not recognized by windows? traceroute, ping, nslookup, etc 'nslookup' is not recognized as an internal or external command, operable Commands not recognized - Windows 7 Help Forums. PowerShell, on the other hand, understands these streams but has its own as well. I don't think Windows includes a command line http client. If you'd. com” to an IP in order to have FortiGuard web filtering function correctly. Right-click on the cmd. nslookup is a command-line tool for network administrator and system administrator that available in many computer operating systems such as linux and windows for querying the Domain Name System (DNS). com for more details (yes I know I’m lazy). The nslookup command enters interactive mode when no arguments are given, or when the first argument is a - (minus sign) and the second argument is the host name or Internet address of a name server. Pipes are useful to chain up several programs, so that multiple commands can execute at once without using a shell script. The MX record for the domain you entered should be displayed. [code] # nslookup google. 4 the command would be: nslookup -q=MX stackexchange. - The /etc/hosts file has relevance only locally on the host it is present. Perhaps this CLI tip sheet for Secure Platform is useful to you too:. nslookup isn't outdated but it is a basic, slimmed down version of more popular and full featured tools like dig and host. Press "Enter". Domain Services. com" or use your own domain name. Type “command” into the search field at the bottom of the Start menu. try the command date first then if the date is not correct you can fix the ntp server settings (see many other posts) or manually set it via the command sudo date -s '2016-10-03 18:22:00' You can figure out the format from above or search the Internet. If you wish to know what the IP address is resolved from domain name, you can use nslookup command to find out. Open a command prompt and just type "nslookup" (minus the quotes) and press enter. If you aren't finding a solution, or would like to talk to a technical support team member, please call 800-669-6242. NSLOOKUP is a shell application and as such needs to have the ____ command run in order to return to the command prompt. It is one of the most basic of the network administrative utilities. If you've researched DNS, you know that there can be a complex set of queries and responses with multiple servers involved before that resolution is returned to the client. Re: Finding all DNS aliases for a host using nslookup/dig/host or similar command In looking into this question off and on today, the only way I've been able to get the alias (CNAME record) from nslookup or nsquery is to use the alias as the argument instead of the hostname or IP address. Once this is done, enter command strtcp to start TCP/IP. The s command replaces the first text with the second text pattern. We are a community of 300,000+ technical peers who solve problems together Learn More. Here are the responses of both commands; Response for: nslookup gmail. We have just updated question in October, 2019. For example, if you want to check if 1. Option Explicit. One of the things that you can do with NSLOOKUP is to look up a specific type of DNS record. This command will run on almost all operating systems including Linux, MacOS and Windows. If you know how to run the command-line version, you can probably also figure out how to run the GUI version, while the opposite is not necessarily true. Nslookup is a command-line tool for dns name resolution. Any unrecognized command is handled as a host name to inquire about. A lot of this work I do via the command line, yes there is a nice GUI available but when I sat the Netscaler course the instructor told us that the command. To terminate Telnet session use the quit command. The Nslookup command is a DNS lookup utility. org is an advanced DNS lookup tool. nslookup - Unix, Linux Command - Nslookup is a program to query Internet domain name servers. Check a DNS record To check a specific DNS record, you need to specify the nslookup command, an optional record type (for example, A, MX, or TXT), and the host name that you want to check. This incredible flexibility is due mainly to its powerful shell, which is at the core of all Linux. To start the command line in Windows, Click Start > Run, enter "cmd" and press enter. Before you perform the procedure in this topic, read Verifying DNS Design and Configuration. The following command lines show the syntax that will be used to query the DNS server. I can PXE boot Linux VMs via the same method on the oVirt host without issue, however, they do not require the nslookup or chain functions in iPXE. ’ gets displayed at the command line as soon as you run a Linux command. Type set q=MX, and then press ENTER. Press enter. The Nslookup tool is great for performing name resolution against DNS servers, but there's no simple WINS equivalent that's part of the OS. In my 'default' file on my kickstart host, the entry that is failing for Windows is:. It only displays the basic name resolution information resolution for a target host. The nslookup command is a powerful tool for diagnosing DNS problems. com to register the domain name. Method 2 - Run Command. Learn vocabulary, terms, and more with flashcards, games, and other study tools. Nslookup is a command line driven utility supplied as part of most Windows operating systems that can reveal information related to domain names and the Internet Protocol (IP) addresses associated with them. txt Problem is the file is created and saved before all of the information comes through form the nslookup command!. This is code implementation for simple nslookup. It is one of the most basic of the network administrative utilities. Type set q=MX, and then press ENTER. Getting Started. Nslookup, meaning “name server lookup,” is a popular built-in command tool that comes with most versions of the Windows operating system. If the command succeeds, the system returns the following message: Windows IP configuration successfully flushed the DNS Resolver Cache. Launch a Command Prompt window within a Windows operating system. It is used to query specific DNS resource records (RR) as well. nslookup - query Internet name servers interactively SYNOPSIS nslookup [-option] [name | -] [server] DESCRIPTION Nslookup is a program to query Internet domain name servers. Also can be run interactively. So here I am with a simple explanation of how this DNS Client works using Windows external command utility called nslookup. Online nslookup, domain whois, and more network tools for domains and websites: DNS nslookup, whois lookup, ping, what is my IP address. ’ gets displayed at the command line as soon as you run a Linux command. com with your website URL of which you want to find the IP address). Your answer will not be displayed immediately. That DNS server may then try asking the root DNS. You can get around this by using a host and domain name to access your system instead of an IP address. This Wiki article explains how to use NSlookup for beginners by providing most of the available options and real usage examples. Open a DOS Command Prompt (Start->Programs->Accessories->Command Prompt) Type "nslookup". NSLookup is a command line utility that is useful when you need to determine the IP address and DNS mapping of a host. This article provides few examples on using the nslookup command. While a command is running, its execution can be interrupted by typing Control-c. Advanced Guide to nslookup By Gary Sims - Posted on Aug 18, 2014 Aug 11, 2014 in Linux When you want to call someone on your cell phone, you likely just find the person in your list of contacts and select their name. It works similarly to the UNIX host command. In some cases, a service record ( SRV ) is used instead. Oct 23, 2019 · Windows 10: Telnet is not recognized as an internal or external command on Windows 10 Discus and support Telnet is not recognized as an internal or external command on Windows 10 in Windows 10 News to solve the problem; [ATTACH] [ATTACH]Telnet (short for teletype. The prompt at the end of the output lets you enter additional parameters. The material in this document is available under a free license, see Legal for details. To access nslookup, open a command prompt window by selecting Start > All Programs > Accessories > Command Prompt. Non-Interactive Use of nslookup Simply enter nslookup command name followed by a hostname of any website you know:. The Nslookup command prompt tool is available only if you have installed the TCP/IP protocol. At a command prompt, type nslookup, and then press ENTER. Nslookup has two modes: interactive and non-interactive. To start using NSLOOKUP, firstly a user need to open COMMAND PROMPT. nslookup is a very powerful tool used to get DNS realted information from DNS servers. try the command date first then if the date is not correct you can fix the ntp server settings (see many other posts) or manually set it via the command sudo date -s '2016-10-03 18:22:00' You can figure out the format from above or search the Internet. In this guide, we will discuss how to install Bind on an Ubuntu 14. com with your domain name but keep everything else there). Start studying nslookup Command Switches. To get your SOA data, you can use NSLOOKUP or DIG (or any other program, or a web site, that can query DNS records from a nameserver you choose). 2), then the IP you asked about is listed. If you enter a domain name, you get back the IP address to which it corresponds, and if you enter an IP number, then you get back the domain name to which it corresponds. The first section specifies the server name and IP address of the host server and the second section is the endpoints' DNS server name and IP address. Netscaler: Basic Command Cheat Sheet Over the last few years I’ve spent a lot of time working with Citrix Netscalers, check out www. This command is considered as the powerful Network Administration tool allows you obtain the DNS Query, Map the new IP address to the server and many more. In order to use command-line tools, users may have to shell out of a Windows-based environment in order to access the command-line interface. Open a DOS Command Prompt (Start->Programs->Accessories->Command Prompt) Type "nslookup". To start the command line in Windows, click Start > Run. Host command is very similar to the NSLookup but available only on Linux. The command-line length must be less than 256 characters. Domain name and ip address tools for DNS Lookup (nslookup), Reverse DNS Lookup (rDNS), Whois, and Traceroute. To start using NSLOOKUP, firstly a user need to open COMMAND PROMPT. PING vs NSLookup Have you ever noticed that ping and nslookup give different results when resolving a name? This happened to me many, many times and it caused me some frustration before I made the effort to understand why it was okay for the results to be different. Type server ;,where IP address is the IP address of your external DNS server; Type set q=MX, and then press Enter; Type , where domain name is the name of your domain, and then press Enter. I've changed the return value for failing lookups to a blank string, "", rather than "NotFound", but otherwise it's unchanged. 2) Change directory. KMS Troubleshooting Time Synchronization is Critical. This command will run on almost all operating systems including Linux, MacOS and Windows. -bash: nslookup: command not found - How to install nslookup on centos 6 & 7/Linux Server?. NSLOOKUP is a service to look up information in the DNS (Domain Name System [RFC1034, RFC1035, RFC1033]). To terminate Telnet session use the quit command. =NsLookup( ) How to check, test and evaluate DNS lookup in Microsoft Excel. The nslookup command can be used to get the associated IP address for your domain and vice versa. In this The Right Tool for the Job article, Joshua Hoskins explains how to troubleshoot a. Once this is done, enter command strtcp to start TCP/IP. Nslookup is installed on a computer running Windows NT or Windows 2000 when you install the TCP/IP protocol on the machine. How to Set DNS Servers from the Command Line of OS X with networksetup. Therefore, you would start the process by entering the NSLOOKUP command at the command prompt. In today’s PowerShell Problem Solver, we’ll wrap up a series of articles that began with a simple request to update a CSV file of computer information with IP addresses. By default, NSLookup is user friendly. From the nslookup prompt type in a fully qualified domain name such as bbc. The name means "name server lookup". com / 6 days 23 hours ago nslookup certifiedhacker. We locate the IP address in United States. CCNA CyberOps Chapter 2 Exam OnlineContinue reading Passed 100% !!! We are expert in ICT training & examination. These commands are very much useful to lists the DNS zone details of a domain name. To test that the SRV record has been entered correctly you need to run the dig command from a terminal window on a Unix/Linux system (including OS X). -bash: nslookup: command not found - How to install nslookup on centos 6 & 7/Linux Server?. While the ping command can only look at A records, the NSlookup command allows you to question your domains nameserver's, and find out much more information regarding your domains DNS. You can see if there is a SPF record. NS Lookup command allows you view Domain DNS, IP Address & many more. I do see DC03. It displays a prompt character (>) to let you know that you're in nslookup subcommand mode rather than at a normal Windows command prompt. Option Explicit. 2) Check DNS Records Using NSlookup Command Nslookup is a program to query Internet domain name servers. On Mac or Linux, start the terminal. Use the command nslookup (this stands for Name Server Lookup) followed by the domain name or IP address you want to trace. While web-based tools are convenient and easy to use, it is often faster to use a command-line tool on your own system. _tcp; Verify if the KMS can be contacted: telnet 1688 If this is not the case, perform a traceroute to determine potential causes. The scary thing about it is that if your DNS is incorrectly configured, then it allows people to scan your entire DNS. com / 9 days 20 hours ago nslookup certifiedhacker. When I run it at a command line I am taking out the additional percent signs needs when it runs in a batch file. - [Instructor] Hello, and welcome back…to IT Help Desk for Beginners. nslookup - Start using dig or host. I wanted to combine the results of my home-grown list with the reverse lookup in easy-to-use command. Non-Interactive Use of nslookup Simply enter nslookup command name followed by a hostname of any website you know:. The command-line length must be less than 256 characters. nslookup can obtain domain name or IP address or for any other specific DNS record. nslookup will help translate a domain name to an IP address. delims=^ skip=4 tokens=2 grabs the instruction out of the file. The SPF record is stored within a DNS database and is bundled with the DNS lookup information. A few rough notes that might save ones bacon one day! It’s unlikely you’ll ever have a need to use any of the information in this post - if you have a problem you’ll be calling NetApp Global Support and not trying stuff found on a completely unofficial NetApp enthusiasts blog post, stuff which is not going to get updated, and where the author never really expects anyone to actually read. About DevCentral. This is a linux command line reference for common operations. NS Lookup command allows you view Domain DNS, IP Address & many more. Penggunaan perintah ini hanya bisa dilakukan dengan menggunakan TCP/IP protocol. If you’ve researched DNS, you know that there can be a complex set of queries and responses with multiple servers involved before that resolution is returned to the client. Set the DNS Record type you wish to lookup by typing set type=## where ## is the record type, then hit Enter. dig is a command line DNS querying utility that allows you to diagnose issues with domain name resolution. To go into interactive mode, type nslookup at the command window then press Enter. How do I use DiG or NSLookup to verify DNS records? Welcome to Ecessa Support, we have a variety of technical information and tools for a variety of solutions. Advanced Guide to nslookup By Gary Sims - Posted on Aug 18, 2014 Aug 11, 2014 in Linux When you want to call someone on your cell phone, you likely just find the person in your list of contacts and select their name. It is used to display DNS details, such as the IP address of a particular computer, the MX records for a domain or the NS servers of a domain. Howto Install nslookup on Centos or RedHat RHEL, How to Install nslookup on Centos or RedHat RHEL, Check nslookup command. Using the above commands I successfully resolve entries from my DNS servers. • interactive mode: no command-line parameters are required in this mode, but the user can control the tool by interactive input. Tools for MX record lookup including priorities and ttl. While a command is running, its execution can be interrupted by typing Control-c. And I can't get this to work as parameters on a command line, like NSLOOKUP -type=any Can anyone assist, please?. As you can see from the code listing, I've used classes defined in the System. It is known for its flexibility, ease of use and the clarity of its output. To go into interactive mode, type nslookup at the command window then press Enter. com Server: 192. Advanced Guide to nslookup By Gary Sims - Posted on Aug 18, 2014 Aug 11, 2014 in Linux When you want to call someone on your cell phone, you likely just find the person in your list of contacts and select their name. This is a simple tool to get a PC name from its IP address and vice versa. NSLOOKUP Command You can use the Name Server Lookup (NSLOOKUP) command to query the Domain Name Service for information about domain names and IP addresses. I am sure DNS server is okay. could you please help me on this. Howto check or nslookup SIP SRV Records on Linux and Windows Posted in Voice January 22, 2013 No comments On Linux we can check or nslookup SIP SRV Records by dig or nslookup commands. If you know how to run the command-line version, you can probably also figure out how to run the GUI version, while the opposite is not necessarily true. If you want to see the IP addresses a hostname maps to, enter the hostname and select A (IP4 address) from the pulldown menu. Hello, I've a problem, why all the commands I type into CMD are not recognized by windows? traceroute, ping, nslookup, etc 'nslookup' is not recognized as an internal or external command, operable Commands not recognized - Windows 7 Help Forums. If you wish to know what the IP address is resolved from domain name, you can use nslookup command to find out. Interactive mode allows the user to query name servers for information about various hosts and domains or to print a list of hosts in a domain. Infact it uses an ssh connection in the background to perform the file transfer. The syntax is as follows:. Dynamic DNS (DDNS) is the ability for a host (your Debian server) to update its own DNS A record. The application nslookup comes with most operating systems and can be used to look up name server details from your Windows, Mac, or Linux command line. The command nslookup gmail. It provides answers both to DNS Lookups (A, AAAA, MX, SOA, CNAME, NS, SRV, TXT), plus reverse lookups (PTR). In the Linux world, nslookup has been deprecated for a long time. Using the NSlookup tool. com / 10 days 8 hours ago nslookup -type=TXT -debug bing. [code] # nslookup google. For an interactive mode to be exited followed by a return to the prompt command, Exit should be typed on the command prompt. txt with stdout from the DIR command. Enter cmd in the Start menu search text box. The nslookup command can also perform a reverse lookup using an IP address to find the domain or host associated with that IP address. This can be helpful for many situations, whether to troubleshoot and discover DNS propagation issues or simply to get an actual IP address, CNAME, IPv6 address, or otherwise. timeout was 2 seconds. Nslookup command to troubleshoot DNS issues. Nslookup, meaning "name server lookup," is a popular built-in command tool that comes with most versions of the Windows operating system. Discovering the Skype for Business Registrar May 30, 2017 by Jeff Schertz · 10 Comments This brief article walks through some common steps which can be used to locate the Fully Qualified Domain Name (FQDN) of a Lync or Skype for Business registrar from either on-premises or online environments. if you need to look up only a single piece of data, use noninteractive mode. You can use the Nslookup command to verify that the SRV resource records needed by Active Directory have been created properly when Dcpromo was run on the server. I wanted to combine the results of my home-grown list with the reverse lookup in easy-to-use command. A newly installed machine will not have dig, nslookup, host commands. NSlookup is a useful suite of tools for looking at DNS records. Here are the responses of both commands; Response for: nslookup gmail. First up is a table of commands, and then later in the page, you’ll find a quick and dirty guide (originally posted as its own article) on actually getting into and using the cross environment. Nslookup is used to query DNS servers to obtain domain name or IP address mappings for DNS records. Using nslookup command. The first word entered on the command line must be the name of a nslookup command unless you wish to enter the name of a host to inquire about. - The /etc/hosts file has relevance only locally on the host it is present. The following command lines show the syntax that will be used to query the DNS server. To run it in Windows, open the Command Prompt and run nslookup on the command line. Using the NSlookup tool. If you’ve researched DNS, you know that there can be a complex set of queries and responses with multiple servers involved before that resolution is returned to the client.