On 29 Jan, chesty wrote: 
>  On Mon, Jan 29, 2001 at 02:11:47PM +1100, [EMAIL PROTECTED] wrote:
> > At home we have 2 machines, on a local ethernet network.
> > Both are running Red Hat 6.2, and both have very similar config files  
> > (with the appropriate substitutions for machine names and static IP
> > addresses).  /etc/resolv.conf in both cases say to look at files before
> > going for bind.  Both are running the same versions of openssh and
> > openssl.
>
>  Have you checked /etc/nsswitch.conf as well as /etc/host.conf?

Yep.  Both machines have identical /etc/nsswitch.conf files.  (I diffed
them).  But anyway, the relevant bit shows "files" first:

[...]
passwd:     files nisplus nis
shadow:     files nisplus nis
group:      files nisplus nis

#hosts:     db files nisplus nis dns
hosts:      files nisplus nis dns
[...]

and the strace showed that the slow host *does* read the file
/etc/host.conf first - it just doesn't seem to find the information it
wants there!  (Since the NIS stuff starts, afterwards.)

If I want to modify the source to do some printf()s to trace what's
happening for the reading of the host.conf file - what library should I
be modifying?  What provides the functionality for reading host.conf?

luke






-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to