Linux Administrator - Ping returns unknown host

Linux Administrator

Privacy Policy

RSS Feed

Acoustic Guitar Tips
Anna Kendrick
Beekeeping Tips
Catherine Zeta Jones
My View On Things
Cheap Auto Insurance
Cheap Places to Live
Delta Shaper
Easy Wood Projects
Felicity Jones
Free Sheet Music
Funny Clean Jokes
Healthy Carbs
Heidi Klum
Improve Your Credit
Ivory Tower Group
Keke Palmer
Linda Ronstadt
Linux Administrator
Money Spigot
Nicole Kidman
Planet Cabinet
Quality Dating Advice
Rustic Cabinets
Sacramento Hiking
Sandra Bullock
Spintax Tool
The Actress
Tristan Prettyman
Viola Davis
Who Are The Beatles

Ping returns unknown host

Ping returns unknown host

This was a really strange one. I encountered a server where nslookup worked, telnet worked, and other services worked. But not ping of a domain name. If I pinged an ip address, no problem. But if I tried to ping a working domain name, I got the error message "unknown host". First place I looked was the /etc/resolv.conf file. Looked fine. And if it wasn't, other things like nslookup wouldn't have worked. I looked elsewhere, but everything else looked fine. Then I found out that certain things like the web server weren't working either. Hmm. After googling for a few minutes, nothing seem to fit the problem. Then, it dawned on me that I wasn't dealing with a DNS issue. It was a permission issue! This server was virtual, and someone had gone in via ssh, got root access, and then did a chmod 000 /. That basically caused everybody except root to be able to get onto the server, and services not running as root to stop working. To fix, I shutdown the virtual server, mounted the server's volume to /mnt and did a chmod 777 /mnt/. After unmounting and firing up the server, everything went back to working and the problem was solved.

Return To Main Page