The Nslookup of Linux commands

Source: Internet
Author: User
Tags domain name server name server lookup nslookup

Http://www.computerhope.com/unix/unslooku.htm

About Nslookup

The nslookup command is used to query Internet name servers interactively for information.

Overview

nslookup, which stands for "name Server Lookup", was a useful tool for finding out information about a named Domai N.

By default, nslookup would translate a domain name to an IP address (or vice versa). For instance, to find out what the IP address of microsoft.com are, you could run the command:

nslookup microsoft.com

... and you would receive a response like this:

Server:     8.8.8.8Address:    8.8.8.8#53non-authoritative answer:name:    microsoft.comaddress: 134.170.185.46Name:    microsoft.comaddress:134.170.188.221

Here, 8.8.8.8 are the address of our system ' s Domain Name Server. This is the server we are configured to, translate domain names into IP addresses. "#53" indicates that we were communicating with it on Port, which was the standard port number domain name serve RS use to accept queries.

below this, we had our lookup information for  microsoft.com . Our name server returned entries,  134.170.185.46  and  134.170.188.221 . This indicates, microsoft.com  uses a round robin setup to distribute server load. When you access micrsoft.com , you are directed to either of these servers and YOUR PACKETS WI ll berouted to the correct destination.

You can see the We have the received a "non-authoritative answer" to our query. An answer are "authoritative" only if our DNS have the complete zone file information for the domain in question. More often, our DNS would have a cache of information representing the last authoritative answer it received when it made a Similar query; This information is passed the server qualifies it as "non-authoritative": The information was recently rec Eived from a authoritative source, but the DNS server was not itself that authority.

The Nslookup of Linux commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.