nslookup

nslookup

nslookup is a network administration command-line tool available for many computer operating systems for querying the Domain Name System (DNS) to obtain domain name or IP address mapping or for any other specific DNS record.

Contents

Background

The name nslookup means name server lookup. Nslookup uses the operating system's local Domain Name System resolver library to perform its queries. Thus, it is configured automatically by the contents of the operating system file resolv.conf.[1]

Even though the nslookup program is very old, its usage is still taught in computer courses such as the Cisco Networking Academy, and it is still installed by default on most versions of Windows including Windows XP, Windows Vista, and Windows 7.

Usage

nslookup operates in interactive or non-interactive mode. When used interactively, when the program is invoked without arguments (another option exists), the user issues parameter configurations or requests when presented the nslookup prompt ('>') in line by line fashion. In non-interactive mode parameters and the query are specified as command line arguments in the invocation of the program.

The general command syntax is:

 nslookup [-option] [name | -] [server]

Example

The following example queries the Domain Name System for the IP address of the domain name example.com by issuing the command nslookup example.com to the command line interpreter (shell):

$ nslookup example.com
Server:         192.168.0.254
Address:        192.168.0.254#53
 
Non-authoritative answer:
Name:   example.com
Address: 192.0.32.10

This is an example of interactive, prompted use of the nslookup application. The user executes the program without any arguments and issues parameters and queries at the program prompt ('>'):

 $ nslookup
 Default Server:  dsldevice.lan
 Address:  192.168.1.1
 
 > server 8.8.8.8
 Default Server:  google-public-dns-a.google.com
 Address:  8.8.8.8
 
 > set type=mx
 > wikipedia.org
 Server:  google-public-dns-a.google.com
 Address:  8.8.8.8
 
 Non-authoritative answer:
 wikipedia.org   MX preference = 10, mail exchanger = mchenry.wikimedia.org
 wikipedia.org   MX preference = 50, mail exchanger = lists.wikimedia.org
 > exit

In this example, the program first displays its default name server configuration, after which the user changes the name server to be used to the host at IP address 8.8.8.8. The type of query to be performed is specified by setting the type of record to be fetched (MX record). Finally, the user simply issues the domain name at the prompt to receive the query results. The command exit ends the interactive session and terminates the program.

See also

References

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • nslookup — est un programme informatique de recherche d information dans le Domain Name System (DNS), qui associe nom de domaine et adresses IP. nslookup permet donc d interroger les serveurs DNS pour obtenir les informations définies pour un domaine… …   Wikipédia en Français

  • Nslookup — est un programme informatique de recherche d information dans un DNS (Domain Name System cf : Les RFC 1034, 1035 et 1033) associant nom de domaine et adresses IP. Il n est plus maintenu pour UNIX et il est recommandé d utiliser dig à la… …   Wikipédia en Français

  • Nslookup — Тип клиент DNS Разработчик Internet Systems Consortium ОС Unix, Windows Лицензия  ? nslookup (англ …   Википедия

  • Nslookup — es un programa, utilizado para saber si el DNS está resolviendo correctamente los nombres y las IP. Se utiliza con el comando nslookup, que funciona tanto en Windows como en UNIX para obtener la dirección IP conociendo el nombre, y viceversa. Por …   Wikipedia Español

  • nslookup — Тип клиент DNS Разработчик Internet Systems Consortium Операционная система Unix, Windows Лицензия ? nslookup (англ. name server lookup поиск на сервере имён)  …   Википедия

  • Nslookup — The nslookup command can be used in Windows and Unix to find various details relating to the Domain Name System (DNS) including IP addresses of a particular computer, MX records for a domain or the NS servers of a domain all using DNS lookups.… …   Wikipedia

  • Nslookup — Der Befehl nslookup kann unter Mac OS X, Windows und Unix verwendet werden, um IP Adressen oder Domänen eines bestimmen Computers mittels DNS herauszufinden. Der Name des Befehls bedeutet „Name Server lookup“, was so viel heißt wie „den Namen des …   Deutsch Wikipedia

  • nslookup — Der Befehl nslookup kann unter Mac OS X, Windows und Unix verwendet werden, um IP Adressen oder Domains eines bestimmten Computers mittels DNS herauszufinden. Der Name des Befehls bedeutet „Name Server lookup“, was so viel heißt wie „den Namen… …   Deutsch Wikipedia

  • nslookup — Name Server Lookup NM Tool zur Domain Name Bestimmung http://www.desy.de/cgi bin/man cginslookup …   Acronyms

  • nslookup — ● ►en n. m. ►NET Name Server Lookup. Voir lookup …   Dictionnaire d'informatique francophone

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”