From owner-freebsd-questions@FreeBSD.ORG Fri Nov 19 23:34:40 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 3717616A4CE for ; Fri, 19 Nov 2004 23:34:40 +0000 (GMT) Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEEE643D53 for ; Fri, 19 Nov 2004 23:34:39 +0000 (GMT) (envelope-from alfredof@libero.it) Received: from localhost (172.16.1.79) by smtp1.libero.it (7.0.027-DD01) id 40C7315F02372928 for questions@freebsd.org; Sat, 20 Nov 2004 00:34:53 +0100 Received: from there (151.24.136.96) by smtp3.libero.it (7.0.027-DD01) id 4178F0D300F191FF for questions@freebsd.org; Sat, 20 Nov 2004 00:34:38 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Alfredo Finelli To: FreeBSD Questions Date: Sat, 20 Nov 2004 00:36:13 +0100 X-Mailer: KMail [version 1.3.2] References: <47f8d9310411191437526f70d1@mail.gmail.com> In-Reply-To: <47f8d9310411191437526f70d1@mail.gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at libero.it serv1 Message-Id: <20041119233439.BEEE643D53@mx1.FreeBSD.org> 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: Fri, 19 Nov 2004 23:34:40 -0000 -- 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 Regards, Alfredo