From owner-freebsd-questions@FreeBSD.ORG Tue Apr 1 01:19:42 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 293C237B401 for ; Tue, 1 Apr 2003 01:19:42 -0800 (PST) Received: from lv.raad.tartu.ee (lv.raad.tartu.ee [194.126.106.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3407443FAF for ; Tue, 1 Apr 2003 01:19:40 -0800 (PST) (envelope-from toomas.aas@raad.tartu.ee) Received: Message by Barricade lv.raad.tartu.ee with ESMTP id h319JJO10543; Tue, 1 Apr 2003 12:19:19 +0300 Message-Id: <200304010919.h319JJO10543@lv.raad.tartu.ee> Received: from INFO/SpoolDir by raad.tartu.ee (Mercury 1.48); 1 Apr 03 12:19:08 +0300 Received: from SpoolDir by INFO (Mercury 1.48); 1 Apr 03 12:18:59 +0300 From: "Toomas Aas" Organization: Tartu City Government To: "W. Sierke" , questions@freebsd.org Date: Tue, 1 Apr 2003 12:18:52 +0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Priority: normal In-reply-to: <024501c2f7c6$080ab560$0264a8c0@regional.net.au> Subject: Re: localhost name resolution problem 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: Tue, 01 Apr 2003 09:19:42 -0000 Hello! > # host localhost > localhost.my.domain is a nickname for my.domain > my.domain has address 202.x.x.x > > > Someone suggested I check localhost.: > > # host localhost. > Host not found. AFAIK the host command doesn't use /etc/hosts. No matter what is specified in /etc/host.conf, the host command always uses DNS. I got bitten by the same thing a couple of weeks ago. To check whether localhost resolves to 127.0.0.1, try for example 'ping localhost' Given the contents of your hosts file, you should be OK. -- Toomas Aas | toomas.aas@raad.tartu.ee | http://www.raad.tartu.ee/~toomas/ * Do infants enjoy infancy as much as adults enjoy adultery?