[SM-Discuss] /etc/hosts being ignored?

"Andraž 'ruskie' Levstik" ruskie at mages.ath.cx
Mon Jul 30 10:39:35 EDT 2007


On 16:32:34 2007-07-30 Matthew Clark <matthewclark at inlesserterms.net> wrote:
> 
> I have a question that Google can't seem to help me with.  I know this  
> isn't SMGL specific, but I figured "What better group to ask?":
> 
> One of my SMGL servers appears to be ignoring the /etc/hosts file.  I  
> get errors in various things that cannot resolve 'localhost' (and,  
> yes, that line is in the hosts file).  I even placed a bogus name and  
> IP address in there as a test, and that confirmed that the file is,  
> indeed, being ignored.
> 
> Any reason the /etc/hosts file would be ignored?
> 

Check: /etc/nsswitch.conf

hosts:      files nisplus nis dns

Should have files in it... if not I'd guess tha might be it...

--
Andraž "ruskie" Levstik
Source Mage GNU/Linux Games grimoire guru
Geek/Hacker/Tinker

Hacker FAQ: http://www.plethora.net/%7eseebs/faqs/hacker.html
Be sure brain is in gear before engaging mouth.

Key id = F4C1F89C
Key fingerprint = 6FF2 8F20 4C9D DB36 B5B6  F134 884D 72CC F4C1 F89C



More information about the SM-Discuss mailing list