From owner-freebsd-stable@FreeBSD.ORG Tue Oct 4 15:20:30 2005 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3316316A41F for ; Tue, 4 Oct 2005 15:20:30 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 975DA43D49 for ; Tue, 4 Oct 2005 15:20:29 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp214-179.lns1.adl2.internode.on.net [203.122.214.179]) by smtp3.adl2.internode.on.net (8.12.9/8.12.6) with ESMTP id j94FKR2u083441 for ; Wed, 5 Oct 2005 00:50:28 +0930 (CST) (envelope-from malcolm.kay@internode.on.net) From: Malcolm Kay Organization: at home To: stable@freebsd.org Date: Wed, 5 Oct 2005 00:50:26 +0930 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510050050.26723.malcolm.kay@internode.on.net> Cc: Subject: Hosts/dns contention in FBSD 5.4 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2005 15:20:30 -0000 I have sytems both at home and at work running FreeBSD 5.4 release with a more or less standard installation. Both systems are connected to internet routers via a nics; and under normal circumstances all works fine -- or at least seems to be working fine. In both cases there are other computers connected via LAN. But if the internet connection breaks -- e.g. the routers crash or the ISP connection fails for some reason then trying to ssh into the machine from another local machine is a problem -- either timing out our taking a very very long time. With the internet connection down I notice a similar problem when booting in the sendmail script. Now it is my understanding that resolution of host names should determine from /etc/host.conf and/or /etc/nsswitch.conf whether to first try /etc/host or the dns server addressed by /etc/resolv.conf I believe these should give preference to /etc/hosts but never-the-less things get stuck when the dns server can't be reached. ************/etc/host.conf**************** # Auto-generated from nsswitch.conf, do not edit hosts bind ************/etc/nsswitch.conf************ group: compat group_compat: nis hosts: files dns networks: files passwd: compat passwd_compat: nis shells: files Am I missing something? (Probably) Is this behaviour normal? Can the lockups be avoided? Any help, ideas or clarification would be appreciated. Malcolm Kay