Date: 26 Nov 2003 16:58:36 -0500 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: Bryan Cassidy <b_cassidy@bellsouth.net> Cc: freebsd-questions@freebsd.org Subject: Re: hostname question Message-ID: <444qwqkd0z.fsf@be-well.ilk.org> In-Reply-To: <20031125185019.45791127.b_cassidy@bellsouth.net> References: <20031125185019.45791127.b_cassidy@bellsouth.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Bryan Cassidy <b_cassidy@bellsouth.net> writes: > I was told I should add a hostname. (my domain name maybe? > bsdjunky.dyndns.org? Will that do?) So far, this could mean several things. hostname(1) should have a reasonable idea of the host's name, if possible. > He said I should put an entry in > /etc/hosts that maps the IP of your box to the hostname you gave it. There's not necessarily any need for this. DNS should resolve it properly, if a bit slower. Some applications will require a reverse mapping (cvsup comes to mind), but if the real DNS is correct, you don't need hosts to do that. > Then put that hostname into main.cf. There's no standard file by that name. Maybe you're configuring postfix? In that case it's a postfix question, but again, editing hosts is usually only necessary if there's a DNS mapping missing. > How would I go about adding a > hostname to /etc/hosts that maps the IP of my box? I use DHCP if that > matters. Putting your hostname on the loopback address (127.0.0.1) is usually a good idea. > Never added anything to /etc/hosts before so don't know the > syntax or anything about what I should add. man 5 hosts or read what's already in the file. > Just add simply on the first > line without any whitespaces bsdjunky.homeunix.org or something else? An IP address, whitespace, and one or more DNS names.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?444qwqkd0z.fsf>