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
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?
wuitsungAsked:
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.

omarfaridCommented:
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
0

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
dfxdeimosCommented:
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. "
0
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....
0
What were the top attacks of Q1 2018?

The Threat Lab team analyzes data from WatchGuard’s Firebox Feed, internal and partner threat intelligence, and a research honeynet, to provide insightful analysis about the top threats on the Internet. Check out our Q1 2018 report for smart, practical security advice today!

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

All applications using dns are clients ans all replying to queries are servers
0
wuitsungAuthor Commented:
so do you mean resolver1.opendns.com is also called "Name server" ?
0
dfxdeimosCommented:
Because the secondary DNS server is only used if the first is unavailable.

Name Srver is a generic term.
0
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?
0
dfxdeimosCommented:
Correct me if I am wrong, but a name server is just a term for a server that holds the authoratative record for something.
0
wuitsungAuthor Commented:
Hi dfxdeimos... I am getting confused again...
How do you call the server that just perform the resolving DNS?
0
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
Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.