From owner-freebsd-questions@FreeBSD.ORG Wed Nov 26 13:58:41 2003 Return-Path: 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 053FA16A4CE for ; Wed, 26 Nov 2003 13:58:41 -0800 (PST) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2180743FB1 for ; Wed, 26 Nov 2003 13:58:38 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.no-ip.com ([66.30.200.37]) by comcast.net (rwcrmhc13) with ESMTP id <2003112621583701500ps112e>; Wed, 26 Nov 2003 21:58:37 +0000 Received: by be-well.no-ip.com (Postfix, from userid 1147) id 8C9686C; Wed, 26 Nov 2003 16:58:36 -0500 (EST) Sender: lowell@be-well.ilk.org To: Bryan Cassidy References: <20031125185019.45791127.b_cassidy@bellsouth.net> From: Lowell Gilbert Date: 26 Nov 2003 16:58:36 -0500 In-Reply-To: <20031125185019.45791127.b_cassidy@bellsouth.net> Message-ID: <444qwqkd0z.fsf@be-well.ilk.org> Lines: 39 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: hostname question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2003 21:58:41 -0000 Bryan Cassidy 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.