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: Meztikasa Meztisida
Country: Nigeria
Language: English (Spanish)
Genre: Sex
Published (Last): 9 June 2011
Pages: 487
PDF File Size: 11.38 Mb
ePub File Size: 2.84 Mb
ISBN: 116-5-37084-428-1
Downloads: 73740
Price: Free* [*Free Regsitration Required]
Uploader: Dataxe

It is also used to troubleshoot DNS related problems. This article provides few examples on using the nslookup command. Interactive mode allows the user to query the DNS-Server about various host, and domains.

Non-Interactive mode allows the user to query the information for a host or domain. The default output of nslookup command is less cluttered than the default output of dig command.

Some of you might be comfortable using dig command for DNS lookups. MX Mail Exchange record maps a domain name to a list of mail exchange servers for that domain. The number 5, 10associated with the MX records tells the preference of mail server. Lower the number, higher mslookup preference. Any answer that originates from the DNS Server which has the complete zone file information available for the domain is said to be authoritative answer.


In many cases, DNS servers will not have vommande complete zone file information available for a given domain.

10 Linux nslookup Command Examples for DNS Lookup

Instead, it maintains a cache file which has the results of all queries performed in the past for which it has gotten authoritative response. It commznde output the name serves which are associated with the given domain. SOA record start of authorityprovides the authoritative information about the domain, the e-mail address of the domain admin, the domain serial number, etc….

In the above command, we have used the ns1. By default DNS servers uses the port number If for any reasons, the port number got changed, then we can specify the port number using -port option.

10 Linux nslookup Command Examples for DNS Lookup

Similar to nslookup command, you can also use dig command to query the DNS information. Thanks for the details, is there any option in nslookup to use specific interface for DNS. Great article nslookpu usual. I seem to recall that there is a limit on the number of dns lookup requests you can send at one time.


Notify me of followup comments via e-mail. All rights reserved Terms of Service.

Shaun Norris July 25, It would be really cool to also have the dig equivalents where applicable for reference. Jalal Hajigholamali July 26,4: Alan Sloan July 26, Tank You very much for this wonderfull post! It will be very advantageous.

Linux nslookup command

Hiep November 1,2: IT was really very helpful. MYNA February 28,5: I will be posting instruction guides, how-to, troubleshooting tips and tricks on Linux, database, hardware, security and web.

My focus is to write articles that will either teach you or help you resolve a problem. Read more about Ramesh Natarajan and the blog. Contact Us Email Me: Use this Contact Form to get in touch me with your comments, questions vommande suggestions about this site. You can also simply drop me a line to say hello!.

Support Us Support this blog by purchasing one of my ebooks.