What does nslookup do?

wuitsung
wuitsung used Ask the Experts™
on
I just bought a domain name and hosting my website on my own server with static ip. I configured the host record in doamin provider's nameserver to point to my ip (76.10.*.*).

When I run nslookup abc.com
Server:  resolver1.opendns.com
Address:  208.67.222.222

Non-authoritative answer:
Name:    abc.com
Address:  76.10.*.*
------------------------------------------------------

Why the name here under Non-authoritative answer is my domain name not the name server hosting the record? so how do I find out the nameserer hosting my record? Isn't nslookup suppose to show nameserver?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2007
Commented:
nslookup will resolve names to ip addresses from dns servers. by default it resolves A records.

if you other info like dns servers serving a domain, then

nslookup> set type=ns

nslookup> yourdomain.com
http://support.microsoft.com/kb/200525

"The first time a query is made for a remote name, the answer is authoritative, but subsequent queries are nonauthoritative. The first time a remote host is queried, the local DNS server contacts the DNS server that is authoritative for that domain. The local DNS server will then cache that information, so that subsequent queries are answered nonauthoritatively out of the local server's cache. "

Author

Commented:
Thanx!! So if I just type nslookup abc.com, it just return the A record... so it's just same as I do ping abc.com ?!! no difference right?

Second question.... when is the time expert must use nslookup to troubleshoot problem? Since I can use ping....
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

you can use it to make sure that the appropriate name server is hosting the record.... use it to determine different record types (MX, CNAME, etc) in domains.

It isn't the same as a ping, because the ping... well... pings. NSLookup doesn't. It is (as it's name implies) for looking up record based on name server.
Top Expert 2007

Commented:
yes it is same as ping except nslookup will give you all ips of a name while ping will pick one only, and nslookup can give you more info that ping can not tell

Author

Commented:
Thank you all. I have a question regarding the term "NSLOOKUP"
it mean "Name server lookup" right?
When I type nslookup , I got:
Default Server:  resolver1.opendns.com
Address:  208.67.222.222

But I check my TCP/IP setting,I have to DNS sever entered there why here just showing one?

And  resolver1.opendns.com, it's my DNS service, why it's a name server?
From my understanding, Name server is not a server hosting records? (A records, MX...). But resolver1.opendns.com is just resolver right? kind of confused here...
Top Expert 2007

Commented:
because it will select one of them to send queries to.

All applications using dns are clients ans all replying to queries are servers

Author

Commented:
so do you mean resolver1.opendns.com is also called "Name server" ?
Because the secondary DNS server is only used if the first is unavailable.

Name Srver is a generic term.
Top Expert 2007
Commented:

Author

Commented:
So I think just as dfxdeimos said, Name Srver is a generic term.
Some nameservers offer hosting of records and resolver and some just work as resolver right?
Correct me if I am wrong, but a name server is just a term for a server that holds the authoratative record for something.

Author

Commented:
Hi dfxdeimos... I am getting confused again...
How do you call the server that just perform the resolving DNS?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial