Hi all,

I have a weird problem concerning name resolving.

Situation:

Reproducable on at least AS 2.1 and RH 7.2 on different (intel)
machines.
In nsswitch.conf, for hosts, i have files nisplus dns.
In resolv.conf i have a working, reachable name server.
In /etc/hosts i put host x.y.z which also resolves in DNS.

When i strace ping x.y.z i see that after calling libnss_files
no more looking up is done and a network connection is made.
This is logical since there is an implicit [SUCCES=return] in 
nsswitch.conf after 'files' and the IP is found in /etc/hosts.

When i strace ftp x.y.z i see that after calling libnss_files,
libnss_nisplus and libnss_dns are also called and a name lookup
is done to the nameserver. Why is that? (telnet behaves the same way)

The main problem is that when i ftp to x.y.z when the nameserver(s)
are unreachable that i first get a name lookup timeout an then
'ftp' connects to the IP found in /etc/hosts. I must get rid of
that timeout....

Any hints?

TIA
Vanne


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to