From owner-freebsd-questions@FreeBSD.ORG Sat Nov 20 02:33:03 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0D6F16A4D0 for ; Sat, 20 Nov 2004 02:33:03 +0000 (GMT) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32BCE43D67 for ; Sat, 20 Nov 2004 02:33:03 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp241-21.lns2.adl2.internode.on.net [203.122.241.21])iAK2Wx4Y040351; Sat, 20 Nov 2004 13:03:00 +1030 (CST) From: Malcolm Kay Organization: at home To: Alfredo Finelli , FreeBSD Questions Date: Sat, 20 Nov 2004 13:02:59 +1030 User-Agent: KMail/1.5.4 References: <47f8d9310411191437526f70d1@mail.gmail.com> <20041119233439.BEEE643D53@mx1.FreeBSD.org> In-Reply-To: <20041119233439.BEEE643D53@mx1.FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411201302.59315.malcolm.kay@internode.on.net> Subject: Re: ssh slowness X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Nov 2004 02:33:04 -0000 On Sat, 20 Nov 2004 10:06 am, Alfredo Finelli wrote: > -- On Friday 19 November 2004 23:37, you wrote: > > Greetings All, > > > > I am running FreeBSD 4.10 stable. I connect to the internet via > > dialup so I have an entries in my /etc/hosts for all my local > > machines and I have an entry in my /etc/resolv.conf for my isp's > > dns server. when I am not connected to my isp and I try to ssh to > > a local machine from a local mahine it takes a "long" time to > > connect. I susspect the reason is because it is trying to hit the > > dns server first from my isp. From what I understand it should hit > > the hosts file first according to the following setup. Can anyone > > exlain how I can fix my problem? or explain why my current > > configuration is incorrect? > > > > /etc/host.conf > > > > # First try the /etc/hosts file > > hosts > > # Now try the nameserver next. > > bind > > In your "host.conf" file you should be using the keyword "order" to > specify how host lookups are to be performed by the resolver. It > should be followed by one or more lookup methods, separated by commas. > Valid methods are "bind", "hosts" and "nis". > > For example the line in /etc/host.conf could be: > > order hosts,bind > Hmm; Where does this come from? I'm not questioning the validity, but the OP's file is the installation default and I can see no reference to keyword "order" in the host.conf(5) man page. Malcolm