From owner-freebsd-questions@FreeBSD.ORG Sun Aug 6 13:51:35 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 E493016A4DD for ; Sun, 6 Aug 2006 13:51:35 +0000 (UTC) (envelope-from dwc@stilyagin.com) Received: from puffy.asicommunications.com (puffy.asicommunications.com [216.9.200.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 488C743D70 for ; Sun, 6 Aug 2006 13:51:35 +0000 (GMT) (envelope-from dwc@stilyagin.com) Received: from jeeves.stilyagin.local (63-230-205-170.phnx.qwest.net [63.230.205.170]) by puffy.asicommunications.com (8.13.4/8.13.3) with ESMTP id k76DpXLL017618 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Sun, 6 Aug 2006 06:51:34 -0700 (MST) Received: (from dwc@localhost) by jeeves.stilyagin.local (8.13.4/8.13.4/Submit) id k76DpRvf027029; Sun, 6 Aug 2006 06:51:27 -0700 (MST) Date: Sun, 6 Aug 2006 06:51:27 -0700 From: Darrin Chandler To: Ro BGCT Message-ID: <20060806135127.GF31683@jeeves.stilyagin.local> References: <1414d640608060624k67066ca9i90db6e6bcc7699fa@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1414d640608060624k67066ca9i90db6e6bcc7699fa@mail.gmail.com> User-Agent: Mutt/1.4.2i Cc: freebsd-questions@freebsd.org Subject: Re: Confused on how to properly set /etc/hosts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Aug 2006 13:51:36 -0000 On Sun, Aug 06, 2006 at 09:24:59AM -0400, Ro BGCT wrote: > > I am new to FreeBSD and am wondering if someone couldt tell me how to > properly set /etc/hosts. Right now it is: > > 127.0.0.1 localhost localhost.my.domain > > It says to replace "my.domain" with the domain name of my machine. If > I am using this box remotely and its hostname is "web1.server.net", > would I make the change like: > > 127.0.0.1 localhost web1.server.net > > Or am I doing it wrong? You should only replace the "my.domain" part with the 2nd level domain, so it would be: 127.0.0.1 localhost localhost.server.net You *may* also have an entry for web1, but it would normally contain your assigned IP address: 10.10.10.115 web1 web1.server.net But you may not want anything except localhost, depending on your DNS setup. In fact, stick with localhost only until and unless you have a reason to add more to /etc/hosts. -- Darrin Chandler | Phoenix BSD Users Group dwchandler@stilyagin.com | http://bsd.phoenix.az.us/ http://www.stilyagin.com/ |