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 
> <verbosity snipped> 
> ;; 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                     |     [EMAIL PROTECTED]
                                   |     [EMAIL PROTECTED]
http://people.freebsd.org/~cjc/    |     [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to