From owner-freebsd-questions@FreeBSD.ORG Wed Feb 9 18:57:32 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 17D2116A4CE for ; Wed, 9 Feb 2005 18:57:32 +0000 (GMT) Received: from mail21.sea5.speakeasy.net (mail21.sea5.speakeasy.net [69.17.117.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CABC43D53 for ; Wed, 9 Feb 2005 18:57:31 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 28685 invoked from network); 9 Feb 2005 18:57:31 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail21.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 9 Feb 2005 18:57:31 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id DBEF849; Wed, 9 Feb 2005 13:57:29 -0500 (EST) Sender: lowell@be-well.ilk.org To: Ken Hawkins References: <094c6888335eff7ca415bc1c475e42bb@rosewoodblues.com> From: Lowell Gilbert Date: 09 Feb 2005 13:57:29 -0500 In-Reply-To: <094c6888335eff7ca415bc1c475e42bb@rosewoodblues.com> Message-ID: <448y5x36jq.fsf@be-well.ilk.org> Lines: 41 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: single box handling multiple ips, how? 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, 09 Feb 2005 18:57:32 -0000 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.