Questions on NSlookup

Hi Expert,

I have some question on command nslookup, can I check in what kind of scenario will you use nslookup? I know it's used to check DNS but do know what kind of situation would use it.

I did nslookup and get default server: unknown, Address: 192.168.1.254, can I check how come my default server is unknown and the IP address is same as my default gateway?

Also when I nslookup on www.google.com I am getting : www.google.com can't find nslookup: No response from server

Appreciate if any expert can advise me on, sorry if the question is too noob.

Thanks!
xchiazyxAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Example of nslookup...

imac> nslookup www.google.com
Server:		127.0.0.1
Address:	127.0.0.1#53

Non-authoritative answer:
Name:	www.google.com
Address: 216.58.192.132

Open in new window


Or you can provide a DNS server...

imac> nslookup www.google.com 8.8.8.8
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
Name:	www.google.com
Address: 216.58.192.228

Open in new window


You address 192.168.1.254 does look like a gateway address.

You'll may have to resolve this problem before proceeding.

And... if a bad gateway was really a problem, then you'd likely have all sorts of problems with all your connections.

So, if connections are working, likely this is a firewall problem blocking port 53 packets... although... if this was true, all lookups will likely break...

An odd one.
Skylar-BarlowCommented:
Also, you can see the answer here that may help.
nociSoftware EngineerCommented:
If you realy want to verify DNS use the dig tool that only tests DNS queries & responses.
nslookup uses the resolver, so the host file may be involved.

That the address is your gateway may indicate your router SHOULD but fails to answer questions..
try:

dig www.google.com @1.1.1.1  or dig www.google.com @8.8.8.8
DrDave242Senior Support EngineerCommented:
nslookup uses the resolver, so the host file may be involved.

Nslookup uses a separate resolver from the Windows DNS client. It does the same thing as dig: sends queries wherever it's told and outputs the responses. Nslookup never checks the hosts file, which nowadays is really just a way to prepopulate the Windows resolver cache.

I did nslookup and get default server: unknown, Address: 192.168.1.254, can I check how come my default server is unknown and the IP address is same as my default gateway?

Nslookup uses the preferred DNS server configured on your network adapter by default, and it will try to perform a reverse lookup on that IP address to resolve it to a name. If this fails, you'll see that "Default Server: Unknown" line. It almost never indicates an actual problem.

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
xchiazyxAuthor Commented:
Thanks!
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.