Gentoo Archives: gentoo-user

From: "W.Kenworthy" <billk@×××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Name Resolution Problem
Date: Mon, 25 Jul 2005 04:22:04
Message-Id: 1122264884.10515.21.camel@localhost
In Reply to: Re: [gentoo-user] Name Resolution Problem by Russell Slater
1 nsswitch.conf has a number of other entries in it which if missing may
2 give rise to similar weird problems like this. You might like to
3 extract it from sys-libs/glibc (the owner on my system) and replace it
4 with the full file.
5
6 BillK
7
8
9 On Sun, 2005-07-24 at 23:59 -0400, Russell Slater wrote:
10 > Thanks Nick! strace showed that /etc/hosts was not being opened, but
11 > it showed that nsswitch.conf was being opened but did not exist, so I
12 > created a nsswitch.conf file with the following line:
13 >
14 > hosts: files dns
15 >
16 > Now everything works.
17 >
18 > Thank you,
19 >
20 > Russ
21 >
22 >
23 >
24 >
25 >
26 >
27 > >From: Nick Rout <nick@×××××××.nz>
28 > >Reply-To: gentoo-user@l.g.o
29 > >To: gentoo-user@l.g.o
30 > >Subject: Re: [gentoo-user] Name Resolution Problem
31 > >Date: Mon, 25 Jul 2005 15:38:12 +1200
32 > >
33 > > > lo is up, verified with ifconfig. I can ping 127.0.0.1, however
34 > pinging localhost results in "ping: unknown host localhost". I get the
35 > same result with anything else that I add to the hosts file.
36 > > > Thanks,
37 > > > Russ
38 > >
39 > >I would try strace now to see if /etc/hosts is being opened:
40 > >
41 > >strace -e open ping localhost
42 > >
43 > >(if that generates too much lok at man strace, there is an option to
44 > >save to a file - redirection does not work IIRC.)
45 > >--
46 > >Nick Rout
47 > >
48 > >--
49 > >gentoo-user@g.o mailing list
50 > >
51 >
52 > -- gentoo-user@g.o mailing list
53
54 --
55 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Name Resolution Problem Zac Medico <zmedico@×××××.com>