This command describes how you can use the nslookup command to perform DNS lookups in Linux. The NSLOOKUP command is used to query name servers so that you can locate information about network nodes, examine the contents of a name-server. D’autres commandes comme host et nslookup (déprécié) peuvent fournir, entre de bonnes mains, le même genre d’informations. Dig a l’avantage (ou.

Author: Nijas Tular
Country: Namibia
Language: English (Spanish)
Genre: Literature
Published (Last): 15 August 2006
Pages: 121
PDF File Size: 14.12 Mb
ePub File Size: 14.61 Mb
ISBN: 537-3-59354-447-2
Downloads: 12503
Price: Free* [*Free Regsitration Required]
Uploader: Kagajora

My focus is to write articles that will either teach you or help you resolve a problem. Lower the number, higher the preference. Specifies the number of seconds to wait before timing out of a request.

10 Linux nslookup Command Examples for DNS Lookup

Sets the class of information returned by queries. You can also simply drop me a line to say hello!. For example, to change the default query type to host computer information and the initial time-out to 10 seconds, type: IT was really very helpful.

If host is a name and does not have a trailing period, the search list is used to qualify the name.

nslookup command | Linux

You should use host or dig instead. Hiep November 1,2: The information listed here is the cached version held by our domain name server. By default, domain name servers accept queries on port Remarks if computerTofind is an IP address and the query is for an A or PTR resource record type, the name nslokkup the computer is returned.


A single component is a component that contains no periods. All fields of every packet are printed. Specifies one of the three options that follow, as specified by selecting the corresponding radio button.

NSLOOKUP command

If computerTofind is a name and does not have a trailing period, the default DNS domain name is appended to the name. When you are ready to exit nslookup ‘s Interactive Mode, run the command exit:.

Field-level validation is performed prior to command execution. You can also run multiple commands interactively by running nslookup with no options:.

This article provides few examples on commandf the nslookup command. Output will resemble the following:. The command-line length must be less than characters. Thanks for the details, is there any option in nslookup to use specific interface for DNS.

The default value for Query Type is A a host address. They later reversed this decision, but it’s important to note that host and dig can provide you with the same functions as nslookupat a somewhat higher level of industry acceptance. Options can be specified on the command line if they precede the arguments and are prefixed with a hyphen.


The only required field is the Domain Name or Address field and it is prefilled with the IP address from the row or bar-graph bar from which you issued the take action command.

NSLOOKUP command

The value may be one of the following, in upper or lower case: 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. An unrecognized command is interpreted as a computer name. By default DNS servers uses the port number See below for a description of these keywords, and their available settings. For instance, to find out what the IP address of microsoft. Was this page useful?

You can set the time-out period with lla set timeout subcommand.