Gentoo Archives: gentoo-user

From: Alexander Kirillov <nevis2us@××××××××.su>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out?
Date: Tue, 29 Nov 2005 11:28:04
Message-Id: 438C3A09.9030209@infoline.su
In Reply to: Re: [gentoo-user] OT - Why is Gentoo so slow when internet is out? by Richard Fish
1 >>>>>The local resolver lib will use either /etc/hosts file or dns queries in
2 >>>>>the order defined in your /etc/host.conf
3 >>>>
4 >>>>You mean /etc/nsswitch.conf?
5 >>>
6 >>>I probably do. Is /etc/host.conf still of any use?
7 >>
8 >>Actually, I'm not sure. I've always edited nsswitch.conf to get it to
9 >>do what I want, with good results.
10 >>
11 >>I see with strace that when I ping <somehost>, both nsswitch.conf and
12 >>host.conf are opened. The man pages don't reveal anything about their
13 >>relationship, so I guess I'll have to take a look at the glibc sources
14 >>tonight.
15 >
16 > As close as I can tell from reading the code (which is to say, I am
17 > making an only slightly educated guess), the 'order' keyword in
18 > host.conf is pretty much ignored by current glibc versions. Host.conf
19 > is only consulted by the libnss_files.so module, and then only for the
20 > 'multi' option. The order in nsswitch.conf is authoritative.
21 >
22 > This seems to be confirmed by a few "strace ping" attempts with
23 > various configurations.
24
25 Thanks Rich,
26 I also was curious and spent some time googling
27 and reading man pages (without success) but didn't go that far:)
28 Sasha
29
30 --
31 gentoo-user@g.o mailing list