From owner-freebsd-hackers Thu Apr 11 23: 1:28 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id A1EE437B416 for ; Thu, 11 Apr 2002 23:01:22 -0700 (PDT) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020412060122.KDJA1901.rwcrmhc52.attbi.com@blossom.cjclark.org>; Fri, 12 Apr 2002 06:01:22 +0000 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.6) id g3C61Lg40262; Thu, 11 Apr 2002 23:01:21 -0700 (PDT) (envelope-from cjc) Date: Thu, 11 Apr 2002 23:01:21 -0700 From: "Crist J. Clark" To: Matt Simerson Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Is natd the right tool? Message-ID: <20020411230121.E39738@blossom.cjclark.org> References: <70BBF3C4-4D4F-11D6-8065-00306553B5E4@blockads.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <70BBF3C4-4D4F-11D6-8065-00306553B5E4@blockads.com>; from freebsd@blockads.com on Thu, Apr 11, 2002 at 09:24:24AM -0400 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Apr 11, 2002 at 09:24:24AM -0400, Matt Simerson wrote: > Natd is a very cool tool for doing stuff like redirecting > connections from an external network to an internal one but I'm have a > slightly different problem. I have a single host with one public > interface: > > host - fxp0 = 192.168.7.251 > > Also on this same host is a bunch more IP's on the loopback interface: > > host - lo0 = 127.0.0.1 > 127.0.0.2 > ..... > > > On each of the loopback addresses I have a DNS server listening. This > part works just fine: > > matt@matt: {101} % dig www.foo.com @127.0.0.2 > > ;; ANSWER SECTION: > www.foo.com. 1D IN A 207.89.154.94 > > > What I want to be able to do is send a dns query to the external > interface of the machine on a non-standard port and have it redirect > the query to a loopback address/port and return the query the > appropriate query result to me. Why don't you just have each named(8) listen on the different port? See 'listen-on' in named.conf(5). -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message