Ping unknown host - Slackware

Why the dns not working?


root@:/# ping www.google.com.br
ping: unknown host www.google.com.br
root@:/# nslookup www.google.com.br
;; connection timed out; no servers could be reached
juliodizAsked:
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.

savoneCommented:
Check your /etc/resolv.conf file and make sure you have good dns servers in there.  You can use googles or opendns.

0
juliodizAuthor Commented:
i think its ok.

search intranet.br
nameserver 10.125.120.1

The server is after the router
0
savoneCommented:
So you have a DNS server setup at that IP address?  If so is it working correctly?  
0
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

savoneCommented:
BTW, you should always have a second name server in there, change the file to look like this and see what happens.

# search intranet.br
nameserver 10.125.120.1
nameserver 8.8.8.8

0
juliodizAuthor Commented:
Yes. in the router is everything ok.

This occurred suddenly
0
juliodizAuthor Commented:
savone

nothing changes...
0
SuperdaveCommented:
Can you ping 10.125.120.1?

If so test the nameserver with:

nslookup www.google.com.br 10.125.120.1

0
expert1010Commented:
Keep away from nslookup. It's been deprecated, flawed you name it over the years. Use "dig" instead. Further more see if you get an answer about a root server.

dig @10.125.120.1 a.root-servers.net.
0
LinuxGuruLinux Server AdministratorCommented:
0
gianluca_marcariCommented:
Your DNS' IP address begins with a 10, so it belongs to a private network.

While many ISP actually do this as a standard practice, if your own IP address doesn't begin with 10 as well (oversimplifying here for the sake of clarity) it might be a sign that the configuration is wrong.

My advice - first of all, ensure you actually have network connectivity by pinging Google's DNS:

ping 8.8.8.8

If this doesn't work you either have no network connectivity at all, or maybe you are in a business environment where you need a proxy to see the "outside world" (in which case only your local administrators can help you).

If, instead, it works (you see responses like "Reply from 8.8.8.8: bytes=32 time=56ms TTL=241") then you can try replacing your "nameserver 10.125.120.1" with the following 2 lines:

nameserver 8.8.8.8
nameserver 8.8.4.4

(these are Google public DNS and are freely usable)

At this point name resolution should work, so you should stop getting unknown host errors.
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
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
Linux Networking

From novice to tech pro — start learning today.