What does nslookup do?

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

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?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial

"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. "
wuitsungAuthor 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....
SolarWinds® VoIP and Network Quality Manager(VNQM)

WAN and VoIP monitoring tools that can help with troubleshooting via an intuitive web interface. Review quality of service data, including jitter, latency, packet loss, and MOS. Troubleshoot call performance and correlate call issues with WAN performance for Cisco and Avaya calls

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.
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
wuitsungAuthor 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

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...
because it will select one of them to send queries to.

All applications using dns are clients ans all replying to queries are servers
wuitsungAuthor 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.
wuitsungAuthor 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.
wuitsungAuthor Commented:
Hi dfxdeimos... I am getting confused again...
How do you call the server that just perform the resolving DNS?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.