From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,98f520a49a665426 X-Google-Attributes: gid111c93,public From: Bruce Allen Subject: Re: why is rsh so slow the second time? Date: 1998/06/03 Message-ID: <35753A20.AD565C0C@dirac.phys.uwm.edu>#1/1 X-Deja-AN: 359109941 References: <3569F061.B026714A@dirac.phys.uwm.edu> <6kdq4b$aeq@raf30.iiic.ethz.ch> <356AE1AC.39E62DA@dirac.phys.uwm.edu> <6l1lme$h9i$1@jaka.ece.uiuc.edu> Content-Type: multipart/alternative; boundary="------------FE134761B216CCB3448B3CAD" Organization: University of Wisconsin - Milwaukee, Physics Department Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha --------------FE134761B216CCB3448B3CAD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Steve Peltz wrote: > >machine B has NO /etc/resolv.conf file > >machine B has /etc/host.conf reading: > > order hosts > > multi on > >so I have deliberately turned off any DNS services. Is this what is > >causing my slow response? > > What about nsswitch.conf? I believe host.conf is not used at all by the > newer resolver library (in glibc), regardless of what the man pages may > say. Steve, I like the way that this sounds -- I didn't even know about nsswitch.conf -- just looked at it for the first time. Could you tell me where it is used (I can't find it refered to in either man pages or in /etc/rc.d/*/*. Here it the file on my machine: passwd: files nisplus nis shadow: files nisplus nis group: files nisplus nis hosts: files nisplus nis dns services: nisplus [NOTFOUND=return] files networks: nisplus [NOTFOUND=return] files protocols: nisplus [NOTFOUND=return] files rpc: nisplus [NOTFOUND=return] files ethers: nisplus [NOTFOUND=return] files netmasks: nisplus [NOTFOUND=return] files bootparams: nisplus [NOTFOUND=return] files netgroup: nisplus publickey: nisplus automount: files nisplus aliases: files nisplus As you have probably guessed, we are not using either NIS or NISPLUS. So do I assume correctly that I should put "files" as the first entry on each line and eliminate everything else? Could you tell me what the [NOTFOUND=return] lines mean? Cheers, Bruce --------------FE134761B216CCB3448B3CAD Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Steve Peltz wrote:
>machine B has NO /etc/resolv.conf file
>machine B has /etc/host.conf reading:
>    order hosts
>    multi on
>so I have deliberately turned off any DNS services.    Is this what is
>causing my slow response?

What about nsswitch.conf? I believe host.conf is not used at all by the
newer resolver library (in glibc), regardless of what the man pages may
say.

Steve, I like the way that this sounds -- I didn't even know about nsswitch.conf -- just looked at it
for the first time.  Could you tell me where it is used (I can't find it refered to in either man pages
or in /etc/rc.d/*/*.  Here it the file on my machine:

passwd:     files nisplus nis
shadow:     files nisplus nis
group:      files nisplus nis
hosts:      files nisplus nis dns
services:   nisplus [NOTFOUND=return] files
networks:   nisplus [NOTFOUND=return] files
protocols:  nisplus [NOTFOUND=return] files
rpc:        nisplus [NOTFOUND=return] files
ethers:     nisplus [NOTFOUND=return] files
netmasks:   nisplus [NOTFOUND=return] files
bootparams: nisplus [NOTFOUND=return] files
netgroup:   nisplus
publickey:  nisplus
automount:  files nisplus
aliases:    files nisplus

As you have probably guessed, we are not using either NIS or NISPLUS.  So do I assume correctly that
I should put "files" as the first entry on each line and eliminate everything else?  Could you tell me what
the [NOTFOUND=return] lines mean?

Cheers,
    Bruce --------------FE134761B216CCB3448B3CAD--