There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet java laptop malware memory monitor motherboard music network obp printer problem ram registry repair router slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
etc/hosts ignored

Reply  
Thread Tools
URA's Avatar
URA URA is offline
Junior Member with 3 posts.
 
Join Date: Oct 2003
21-Oct-2003, 07:33 PM #1
etc/hosts ignored
On Redhat 9 system, ping does not resolve names using hosts file.
Ping localhost returns - unknown host.
127.0.0.1 localhost is first line in etc/hosts.
added all: all to hosts.allow but no joy.
can someone please point me in right direction
Squashman's Avatar
Trusted Advisor with 18,705 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
22-Oct-2003, 03:30 AM #2
Can you ping IP addresses or the localhost ip.

Also wondering if you can ping domain names on the internet.
URA's Avatar
URA URA is offline
Junior Member with 3 posts.
 
Join Date: Oct 2003
23-Oct-2003, 02:34 PM #3
DNS names resolved OK.
Found an entry in nsswitch.conf that regulates whether the hosts file is used.
added ' hosts: files dns' and problem was resolved.
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
24-Oct-2003, 06:36 AM #4
We have an answer!
Now contact a mod to have this puppy marked as RESOLVED
Welcome to TSG URA
lynch
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:47 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.