From owner-freebsd-questions Fri May 3 2: 4:29 2002 Delivered-To: freebsd-questions@freebsd.org Received: from clientmail.ehsrealtime.com (eris.ehsrealtime.com [213.52.146.130]) by hub.freebsd.org (Postfix) with ESMTP id 45C7137B417 for ; Fri, 3 May 2002 02:04:26 -0700 (PDT) Received: from pan.ehsrealtime.com ([213.52.146.196]) by clientmail.ehsrealtime.com with esmtp (Exim 3.33 #2) id 173YzJ-000P6T-01 for freebsd-questions@freebsd.org; Fri, 03 May 2002 10:04:25 +0100 Received: from localhost.localdomain ([127.0.0.1] helo=pan.ehsbrann.com) by pan.ehsrealtime.com with smtp (Exim 3.35 #1) id 173Yz9-000060-00 for freebsd-questions@freebsd.org; Fri, 03 May 2002 10:04:15 +0100 Date: Fri, 3 May 2002 10:04:14 +0100 From: Byron Schlemmer To: freebsd-questions@freebsd.org Subject: /etc/hosts Message-Id: <20020503100414.2ca1b66d.me@byron.me.uk> X-Mailer: Sylpheed version 0.7.5 (GTK+ 1.2.10; i386-portbld-freebsd4.5) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi folks, I'm sure this is a trivial question however I'm struggling to find a definative answer, maybe I'm not looking hard enough. /etc/hosts, does it resolve names to IPs, IPs to names, or both? Does gethostbyname() and gethostbyaddr() both query /etc/hosts? Does it just depend on the application. -- -byron -- "Those who do not understand Unix are condemned to reinvent it, poorly." -- Henry Spencer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message