ssh - /etc/hosts - dns - problem

Harris, James James_Harris at maxtor.com
Wed May 29 07:27:43 PDT 2002


Double check your /etc/nsswitch.conf and make sure your hosts entry has
files listed before dns.


> -----Original Message-----
> From: Heiko Vogel [mailto:webmaster at foellmar.de] 
> Sent: Wednesday, May 29, 2002 08:02
> To: blfs-support at linuxfromscratch.org
> Subject: ssh - /etc/hosts - dns - problem
> 
> 
> Hi there,
> I have a little problem:
> 
> I have one machine with a Dial-Up-ISDN - connection, with 
> sshd running on
> it. When I try to login from another machine (over the LOCAL network)
> using ssh with the numeric IP-adress of machine number one, everything
> works and NO ISDN-connection is established.
> But if try to login using ssh with the NAME of machine number one, ssh
> tries to resolve that name with DNS and so establishes a ISDN 
> connection
> to my provider, but it shouldn't, because the name is in 
> /etc/hosts file.
> 
> How can I change that behaviour, so that ssh FIRST looks in 
> /etc/hosts and
> AFTER that tries DNS ?
> 
> 
> greetz haaner
> 
> 
> 
> -- 
> Unsubscribe: send email to listar at linuxfromscratch.org
> and put 'unsubscribe blfs-support' in the subject header of 
> the message
> 
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list