From owner-freebsd-questions@FreeBSD.ORG Thu Nov 20 21:26:59 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 4402616A4CE for ; Thu, 20 Nov 2003 21:26:59 -0800 (PST) Received: from p1028-ipbffx02marunouchi.tokyo.ocn.ne.jp (p1028-ipbffx02marunouchi.tokyo.ocn.ne.jp [220.111.132.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id B87D243FEA for ; Thu, 20 Nov 2003 21:26:57 -0800 (PST) (envelope-from lukek@meibin.net) Received: (qmail 69325 invoked by uid 89); 21 Nov 2003 05:26:56 -0000 Received: from unknown (HELO ?127.0.0.1?) (192.168.10.35) by 192.168.20.5 with SMTP; 21 Nov 2003 05:26:56 -0000 Date: Fri, 21 Nov 2003 14:25:12 +0900 From: Luke Kearney To: freebsd-questions@freebsd.org, paul van den bergen In-Reply-To: <6.0.0.22.0.20031120203640.08c1f8f8@pop.face2interface.com> References: <200311211217.30862.pvandenbergen@swin.edu.au> <6.0.0.22.0.20031120203640.08c1f8f8@pop.face2interface.com> Message-Id: <20031121141516.0841.LUKEK@meibin.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.07.01 Subject: Re: hostnames and interfaces X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2003 05:26:59 -0000 X-List-Received-Date: Fri, 21 Nov 2003 05:26:59 -0000 On Thu, 20 Nov 2003 20:42:33 -0500 Marty Landman granted us these pearls of wisdom: > At 08:17 PM 11/20/2003, paul van den bergen wrote: > > >to expand on this, there is a potential many to many relationship here > >between > >host names and IP addresses (strickly speaking that is what dns etc sees?) > > > >how dose BSD define this? how does one define this using BSD? > > Hey, sounds like you understand things so well you see the void in the > forest. As a newbie I'm still just trying to keep my head from twisting off > at long enough intervals to define some of the questions. Like, given I > have 5 boxes - 1 fbsd 4 windoz though maybe that proportion will change in > a time :) - and each has their own ip adr and I have two apaches installed > does that mean I can setup a max of 5 different domain level websites on my > intranet? Or 10? Or infinite (well, this is reality I hope so...) > > The daemons are afoot, my ponderings do not affect them. Hi, Let me see if I can shed some light on this issue for you. To the best of my knowledge a FBSD system can have only one hostname however it can have as many aliases as you wish. The setup of aliases is acheived via DNS rather than assigning hostnames per interface. Where you have multiple machines you would assign multiple hostnames whether they be from different domains or not. $ host mail.meibin.net mail.meibin.net is a nickname for kyoto.meibin.net kyoto.meibin.net has address 220.111.132.28 per the above the actual host name for the system is kyoto, it's FQDN is kyoto.meibin.net and it has the alias of mail.meibin.net rather than the host name of mail.meibin.net . Apache and loads of other software support virtual hosting and defining a name in an apache configuration has little to do with the actual underlying system hostname. That being said virtual hosts don't work well if DNS was not set correctly for them. HTH LukeK