From owner-freebsd-questions@FreeBSD.ORG Wed Dec 10 09:26:25 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 12E9816A4CE for ; Wed, 10 Dec 2003 09:26:25 -0800 (PST) Received: from blacklamb.mykitchentable.net (67-51-118-244.dsl1.elk.ca.frontiernet.net [67.51.118.244]) by mx1.FreeBSD.org (Postfix) with ESMTP id F15E843D21 for ; Wed, 10 Dec 2003 09:26:22 -0800 (PST) (envelope-from drew@mykitchentable.net) Received: from bigdaddy (bigdaddy.mykitchentable.net [192.168.1.3]) by blacklamb.mykitchentable.net (Postfix) with SMTP id 1E8B23BF42D; Wed, 10 Dec 2003 09:26:22 -0800 (PST) Message-ID: <035b01c3bf42$bb1d9250$0301a8c0@bigdaddy> From: "Drew Tomlinson" To: "Stephane Bortzmeyer" References: <025101c3be5b$66080990$0301a8c0@bigdaddy> <20031209174018.GC1174@fetiche.sources.org> Date: Wed, 10 Dec 2003 09:26:22 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 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: , X-List-Received-Date: Wed, 10 Dec 2003 17:26:25 -0000 ----- Original Message ----- From: "Stephane Bortzmeyer" Sent: Tuesday, December 09, 2003 9:40 AM > 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. I'm using 4.9. Sorry, I forgot to specify. > 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. I'm not sure what I'm looking for here. The machine that runs the ssh client is a Win XP box named 'bigdaddy'. That resolves on the Win XP box: C:\Documents and Settings\tomlinson_dr>ping localhost Pinging bigdaddy [127.0.0.1] with 32 bytes of data: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 The FBSD box running sshd also resolves: blacksheep# ping localhost PING localhost (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.519 ms So what do I need to do? As I understand it, their needs to be an entry for the client machine in /etc/hosts which I have. Thanks, Drew