From owner-freebsd-questions Fri Dec 22 6: 7:42 2000 From owner-freebsd-questions@FreeBSD.ORG Fri Dec 22 06:07:41 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from bcfw1d.bridge.com (bcfw1d.ext.bridge.com [167.76.159.31]) by hub.freebsd.org (Postfix) with ESMTP id 5091337B400 for ; Fri, 22 Dec 2000 06:07:40 -0800 (PST) Received: (from uucp@localhost) by bcfw1d.bridge.com (8.10.2/8.10.2) id eBME8W211593 for ; Fri, 22 Dec 2000 08:08:32 -0600 (CST) Received: from unknown(167.76.56.34) by bcfw1d.bridge.com via smap (V5.5) id xma011562; Fri, 22 Dec 00 08:08:21 -0600 Received: from mnmailhost (mnmailhost.bridge.com [167.76.155.14]) by mail1srv.bridge.com (8.8.8/8.7.3) with SMTP id IAA04914 for ; Fri, 22 Dec 2000 08:07:22 -0600 (CST) Received: from 89-7 by mnmailhost (SMI-8.6/SMI-4.1) id JAA03844; Fri, 22 Dec 2000 09:07:19 -0500 To: freebsd-questions@FreeBSD.ORG Subject: /etc/hosts and including domains From: Tim Ayers Date: 22 Dec 2000 08:07:20 -0600 Message-ID: <8zp835yf.fsf@tim.bridge.com> Lines: 31 User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am curious about the default contents of /etc/hosts. Right after I install FreeBSD-4.1.1, I look in /etc/hosts and it contains something like 127.0.0.1 localhost 192.168.196.2 janis.quaday.com janis 192.168.196.2 janis.quaday.com. I understand the localhost line. But I don't know the reasoning for including "janis.quaday.com". Is the domain defined explicitly anywhere when using DNS or is this (and the hostname= line in /etc/rc.conf) the place where my domain is specified? And I really don't understand what the "janis.quaday.com." is doing. Why have the name including DNS 'root'? And why on a separate line instead of just another alias on the same line? Finally, what's the correct way to add the other local hosts to my /etc/hosts? Like 192.168.196.3 joan or 192.168.196.3 joan.quaday.com joan Thanks for the enlightenment. Now back to figuring out my real problems. ;-) Hope you have a very nice day, :-) Tim Ayers (tayers@bridge.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message