Subject: Re: DNS for some sites
To: Water NB <netbsd78@126.com>
From: Chuck Swiger <cswiger@mac.com>
List: netbsd-users
Date: 08/09/2005 14:01:57
Water NB wrote:
> In our internal network, a NetBSD PC (2.0_STABLE) runs as gateway 
> and DNS server (named).  Others PCs get IP from this NetBSD.
> 
> Because some tunnel sub-network is running. for example, a remote VPN
> clinet (PC1) is connected with NetBSD, PC1's tunnel IP is 10.9.1.1
> 
> When internal PC query PC1's IP, I want NetBSD PC tell them that PC1's IP is 10.9.1.1, not to query external DNS server, How can I do?
> 
> I add the item in /etc/hosts, but it doesn't affect.

See the BIND documentation or the FAQ about setting up "views", this lets you 
have different answers depending on where the question comes from:

http://www.isc.org/sw/bind/FAQ.php

You'll probably need at least BIND-8...

-- 
-Chuck