At Fri, 26 Jul 2002 10:14:34 +1000, Alan L Tyree wrote: > >> what does /etc/nsswitch.conf say? > > bigdog: > > hosts: files nisplus nis dns > > sage: > hosts: files dns dns >
(assuming you aren't actually using nis) try something like this: hosts: files [SUCCESS=return] dns (you will probably need to restart sshd (and nscd if you're running that) after making the change) because ssh supports ipv6 (and is written properly), ssh uses getaddrinfo(3) to do the name lookups. getaddrinfo() returns a list of *all* addresses that match a name, so it (normally) tries all sources. the [SUCCESS=return] bit makes it drop out early if it found something in /etc/hosts. -- - Gus -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug