From owner-freebsd-questions@FreeBSD.ORG Fri Nov 21 07:35:52 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 8606216A4CE for ; Fri, 21 Nov 2003 07:35:52 -0800 (PST) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2ADC043FD7 for ; Fri, 21 Nov 2003 07:35:49 -0800 (PST) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id hALFZef19409; Fri, 21 Nov 2003 10:35:40 -0500 (EST) From: Jerry McAllister Message-Id: <200311211535.hALFZef19409@clunix.cl.msu.edu> To: lukek@meibin.net (Luke Kearney) Date: Fri, 21 Nov 2003 10:35:39 -0500 (EST) In-Reply-To: <20031121141516.0841.LUKEK@meibin.net> from "Luke Kearney" at Nov 21, 2003 02:25:12 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org 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 15:35:52 -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. You can also configure your NIC to answer to multiple IP addresses and then configure your Apache to treat each as a virtual host with a separate hostname/URL. Yes, you have to have whoever is serving DNS for you (either yourself, your ISP or some DNS service) set up to translate IP <-> hostname and if it involves a new Domain name, you have to register it with the appropriate registering agency. Most of our sites use a separate IP for each virtual host for various reasons. But, you can also have multiple aliases per IP address as the poster indicates. ////jerry > > HTH > > LukeK > > _______________________________________________