From owner-freebsd-questions Mon Dec 30 2:27:46 2002 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 D65F837B401 for ; Mon, 30 Dec 2002 02:27:44 -0800 (PST) Received: from mail.bellavista.cz (mail.bellavista.cz [62.168.44.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4348443EA9 for ; Mon, 30 Dec 2002 02:27:44 -0800 (PST) (envelope-from neuhauser@bellavista.cz) Received: from freepuppy.bellavista.cz (freepuppy.bellavista.cz [10.0.0.10]) by mail.bellavista.cz (Postfix) with ESMTP id 1741169; Mon, 30 Dec 2002 11:27:43 +0100 (CET) Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id 816012FDB2C; Mon, 30 Dec 2002 11:27:41 +0100 (CET) Date: Mon, 30 Dec 2002 11:27:41 +0100 From: Roman Neuhauser To: Thomas Connolly Cc: FreeBSD Questions Subject: Re: dns Message-ID: <20021230102741.GY348@freepuppy.bellavista.cz> Mail-Followup-To: Thomas Connolly , FreeBSD Questions References: <200212292219.08315.tconnolly@electrosoftsolutions.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200212292219.08315.tconnolly@electrosoftsolutions.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG # tconnolly@electrosoftsolutions.com / 2002-12-29 22:19:08 -0700: > Hello all. I have a freebsd box I'm using as a router for my subnet. I have > this freebsd router doing nat and dhcp assinging internal ip addresses for > the computers on the network (i.e. 192.168.x.x). This box is also a web > server for a registered domain name. My probelm is that when someone wants > to connect to my web site the dns gives them the internal ip of the FreeBSD > box and not the external ip of the router. Can someone tell me how I get the > FreeBSD's dns to point to the external ip address for my doimain? Thanks > much. you are talking about the so-called "split horizon", where the information returned by the content server differs based on the IP of the resolver. configuration is of course software dependent. djbdns: http://homepages.tesco.net/~J.deBoynePollard/FGA/dns-split-horizon.html bind has a facility called "views" which should be able to provide similar results. -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message