Date: Sun, 6 Aug 2006 06:51:27 -0700 From: Darrin Chandler <dwchandler@stilyagin.com> To: Ro BGCT <robgct@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Confused on how to properly set /etc/hosts Message-ID: <20060806135127.GF31683@jeeves.stilyagin.local> In-Reply-To: <1414d640608060624k67066ca9i90db6e6bcc7699fa@mail.gmail.com> References: <1414d640608060624k67066ca9i90db6e6bcc7699fa@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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/ |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060806135127.GF31683>