From owner-freebsd-questions@FreeBSD.ORG Fri Aug 31 01:33:23 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51AA416A419 for ; Fri, 31 Aug 2007 01:33:23 +0000 (UTC) (envelope-from xrayv19@yahoo.com) Received: from web58111.mail.re3.yahoo.com (web58111.mail.re3.yahoo.com [68.142.236.134]) by mx1.freebsd.org (Postfix) with SMTP id 0C30F13C45E for ; Fri, 31 Aug 2007 01:33:22 +0000 (UTC) (envelope-from xrayv19@yahoo.com) Received: (qmail 445 invoked by uid 60001); 31 Aug 2007 01:33:08 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=MMM0M7x73IvRc3yZVapEudl5dHqIltFB7927aN7iHT3ncD+XAhEw23jrEwARx+ubd2FhMmrUAZgk7KWqYdXrgwN5Fkebf9H0H+4aadUyy6SuLuRRbzrszJhF/u2pS6XKJOi19+fnjZU3i71jaBY8L27MIP5ln1SrjYXbb0twvRA=; X-YMail-OSG: k3rZyUEVM1kBcDTugUwU1Ge3ZMY2jjGiE_Od5H_J_yoN9DZe4JAfUqb59L0tyaqK0ef9CSgKsOZOH1lQL2Wa7uK5_Q-- Received: from [131.191.82.223] by web58111.mail.re3.yahoo.com via HTTP; Thu, 30 Aug 2007 18:33:08 PDT Date: Thu, 30 Aug 2007 18:33:08 -0700 (PDT) From: L Goodwin To: Jeffrey Goldberg In-Reply-To: <43F1E2AB-E5D0-4B64-8539-44C35557D965@goldmark.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <407356.383.qm@web58111.mail.re3.yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD Hostname Question - Whats The Proper Way 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: Fri, 31 Aug 2007 01:33:23 -0000 --- Jeffrey Goldberg wrote: > On Aug 30, 2007, at 6:29 PM, L Goodwin wrote: > > > Do you mean avoid giving any machines on your LAN > the > > same hostname as the (hosted) web server, mail > server > > and ftp server? I don't even know what the > hostname > > for the web server is. The mail and ftp servers > are > > "mail..com" and > "ftp..com", so > > I guess I would not want to use these. > > I have a minimum of three names for any machine > visible to the > outside world. > > (1) I have the internal name that I give a box. A > few years ago, I > asked my daughter for help naming machines, and we > ended up with a > Harry Potter theme. So my primary external server > (which has the > most names) is dobby.ewd.goldmark.org, but that name > isn't visible to > the world. It's not secret, but I have no intention > of having > anything out side my local network needed to refer > to it that way. > > (And in the Harry Potter scheme, my three headed > firewall is named > fluffy.) > > (2) But there is another name it must also have. I > have a tiny block > of IP addresses which all had PTR records associated > with them like > > static-72-64-118-118.dllstx.fios.verizon.net. > > It took more than two hours on the phone to Verizon > to get those > changed, so it was something I only ever wanted to > do once, so I have > names like > > n114.ewd.goldmark.org > n115.ewd.goldmark.org > > and so on. So dobby is also known of as > n118.ewd.goldmark.org > > (3) Now dobby runs a couple of public servers. It > runs Apache as > www.goldmark.org and about half a dozen vhosts. It > also also runs a > mailserver (postfix) with mailman primarily visible > under the name > lists.shepard-families.org. > > So recapping. One is my quasi-private name for the > box itself. And > that is what hostname knows. Two is a name > corresponding the the > reverse lookup of any public IP address it might > have. There may be > several of these if the machine had multiple IP > addresses. And three > are "role" names for all of the services it runs. > This way, if I > want to move a service to a different host, that is > relatively easy. Thanks, Jeff! ____________________________________________________________________________________ Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/