Gentoo Archives: gentoo-user

From: Russell Slater <russellds@×××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Name Resolution Problem
Date: Mon, 25 Jul 2005 04:04:31
Message-Id: BAY103-F31307910B0B8C848F51918BACA0@phx.gbl
In Reply to: Re: [gentoo-user] Name Resolution Problem by Nick Rout
1
2

Thanks Nick! strace showed that /etc/hosts was not being opened, but it showed that nsswitch.conf was being opened but did not exist, so I created a nsswitch.conf file with the following line:

3

hosts:   files dns

4

Now everything works.

5

Thank you,

6

     Russ




>From: Nick Rout <nick@×××××××.nz>
>Reply-To: gentoo-user@l.g.o
>To: gentoo-user@l.g.o
>Subject: Re: [gentoo-user] Name Resolution Problem
>Date: Mon, 25 Jul 2005 15:38:12 +1200
>
> > lo is up, verified with ifconfig. I can ping 127.0.0.1, however pinging localhost results in "ping: unknown host localhost". I get the same result with anything else that I add to the hosts file.
> > Thanks,
> >      Russ
>
>I would try strace now to see if /etc/hosts is being opened:
>
>strace -e open ping localhost
>
>(if that generates too much lok at man strace, there is an option to
>save to a file - redirection does not work IIRC.)
>--
>Nick Rout
>
>--
>gentoo-user@g.o mailing list
>
7
8 --
9 gentoo-user@g.o mailing list
10
11
12

Replies

Subject Author
Re: [gentoo-user] Name Resolution Problem "W.Kenworthy" <billk@×××××××××.au>