From owner-freebsd-questions@FreeBSD.ORG Tue Dec 9 23:35:09 2003 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 E1ECA16A4CF for ; Tue, 9 Dec 2003 23:35:09 -0800 (PST) Received: from mail-aubervilliers.netaktiv.com (soyouz.netaktiv.com [80.67.170.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FE1D43D2D for ; Tue, 9 Dec 2003 23:35:07 -0800 (PST) (envelope-from stephane@laperouse.internatif.org) Received: by mail-aubervilliers.netaktiv.com (Postfix, from userid 10) id 1CE5F240FC; Wed, 10 Dec 2003 08:35:06 +0100 (CET) Received: by fetiche.sources.org (Postfix, from userid 1001) id 8EC599AD0; Tue, 9 Dec 2003 22:10:18 +0430 (AFT) From: Stephane Bortzmeyer To: Drew Tomlinson Message-ID: <20031209174018.GC1174@fetiche.sources.org> References: <025101c3be5b$66080990$0301a8c0@bigdaddy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <025101c3be5b$66080990$0301a8c0@bigdaddy> User-Agent: Mutt/1.4.1i X-Transport: UUCP rules X-Operating-System: FreeBSD 5.1-RELEASE i386 cc: FreeBSD Questions Subject: Re: How to Setup Reverse DNS on LAN? 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: , Date: Wed, 10 Dec 2003 07:35:10 -0000 X-Original-Date: Tue, 9 Dec 2003 22:10:18 +0430 X-List-Received-Date: Wed, 10 Dec 2003 07:35:10 -0000 On Tue, Dec 09, 2003 at 05:50:25AM -0800, Drew Tomlinson wrote a message of 33 lines which said: > When connecting via ssh to my FBSD boxes, it takes over a minute > before the connection is established. Searching the archives > suggests that this is due to a failed reverse DNS lookup that must > time out before connecting. Probably. > But 192.168.1.3 does not: > > blacksheep> host 192.168.1.3 > Host not found, try again. On FreeBSD 5.1, it appears, speaking both from the man page and from an actual test, that host does not use /etc/hosts at all. It would be nice to have a command which uses getaddrinfo() but host does not. ping would be a better test: ~ % ping localhost PING fetiche (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.253 ms The name 'fetiche' was found in /etc/hosts.