From owner-freebsd-questions@FreeBSD.ORG Wed Feb 9 20:33:21 2005 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 CAA6016A4CE for ; Wed, 9 Feb 2005 20:33:21 +0000 (GMT) Received: from complex.heavybit.com (complex.heavybit.com [216.127.86.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7210E43D39 for ; Wed, 9 Feb 2005 20:33:21 +0000 (GMT) (envelope-from ken@rosewoodblues.com) Received: from [10.0.1.2] (c-24-98-140-190.atl.client2.attbi.com [24.98.140.190]) (authenticated) by complex.heavybit.com (8.11.6/8.11.6) with ESMTP id j19KXLl12167 for ; Wed, 9 Feb 2005 12:33:21 -0800 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <448y5x36jq.fsf@be-well.ilk.org> References: <094c6888335eff7ca415bc1c475e42bb@rosewoodblues.com> <448y5x36jq.fsf@be-well.ilk.org> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Ken Hawkins Date: Wed, 9 Feb 2005 15:33:19 -0500 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.619.2) Subject: Re: single box handling multiple ips, how? 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: Wed, 09 Feb 2005 20:33:22 -0000 Thanks, I do not know what the 'web1.a.net.' is about, more specifically he .net"." (dot on the end). i took this for the initial setup that was done on the box' initial entry in the /etc/hosts. ok what am i doing... I have apache running on the box and would like to use 3 diffferent IP's to try and keep (somewhat separate) the traffic, logging, etc. for the Virtual Hosts that are running there. ultimately I will have; resolve to -> website 1 resolve to -> website 2 resolve to -> website 3 obviously they will bind to the same box but i would like to have them to separate ip's to ease some maintenance on the box, redirect traffic when needed, blah, blah. I know that I can Name more than one VirtualHost ie; NameVirtualHost ???.???.???.151:80 NameVirtualHost ???.???.???.152:80 NameVirtualHost ???.???.???.153:80 and then the normal VirtualHost directive via IP's but I want to make sure that the box will answer to those ip's when we flip the DNS switch. am i making sense? did i leave anything beyond the bind directive's out? ken; On Feb 9, 2005, at 1:57 PM, Lowell Gilbert wrote: > Ken Hawkins writes: > >> Sorry if this is not quite the place to ask however, if it is not can >> someone point me toward the right resource (on the net) for answers. I >> am >> running FreeBSD on a box with an ethernet; >> ifconfig >> em0: flags=8843 mtu 1500 >> options=1b >> inet ???.???.???.151 netmask 0xffff0000 broadcast >> 10.50.255.255 >> inet6 fe80::230:48ff:fe2c:76e2%em0 prefixlen 64 scopeid 0x1 >> inet ???.???.???.152 netmask 0xffffffff broadcast 10.50.1.152 >> inet ???.???.???.153 netmask 0xffffffff broadcast 10.50.1.153 >> ether 00:30:48:2c:76:e2 >> media: Ethernet 100baseTX >> status: active >> >> the are just our ips. you will notice that .152 and .153 are >> aliases >> and are mapped to external ips via a switch. my question is how can I >> resolve names to the ip aliases on the box? ie >> >> ???.???.???.152 -> a.net >> >> and >> >> ???.???.???.153 -> b.net >> >> is this a /etc/hosts kind of entry? >> >> ???.???.???.152 web1.a.net web1 >> ???.???.???.152 web1.a.net. >> ???.???.???.153 web1.b.net web1 >> ???.???.???.153 web1.b.net. >> >> any help would be greatly appreciated! > > Yes, /etc/hosts will be the place to put those translations (for the > full hostnames -- you don't want the "web1.a.net." entries) if you > want that machine to know about them. If you explained the desired end > result, we might be able to give you more help. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >