Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] /etc/hosts being ignored?

sm-discuss AT

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Matthew Clark <matthewclark AT>
  • To: sm-discuss AT
  • Subject: Re: [SM-Discuss] /etc/hosts being ignored?
  • Date: Mon, 30 Jul 2007 09:41:47 -0500

Thanks for the reply. However, I do not have a /etc/nsswitch.conf file. Of the results I was able to find using Google, many suggestions include checking that and the /etc/hosts.conf file, which I do not have either. In fact, none of my SMGL servers have either of those files.

This is definitely the most extraordinary of gotchas...

Quoting Andraž 'ruskie' Levstik <ruskie AT>:

On 16:32:34 2007-07-30 Matthew Clark <matthewclark AT> 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

Hacker FAQ:
Be sure brain is in gear before engaging mouth.

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

SM-Discuss mailing list
SM-Discuss AT

Archive powered by MHonArc 2.6.24.

Top of Page