forwarding?

Saad Kadhi bsdguy at docisland.org
Sun Apr 21 11:41:13 UTC 2002


On Sun, 2002-04-21 at 00:55, David Hill wrote:
> Hello -
> I have an VPN setup between me and a remote site.  The remote site hosts
> 192.168.0.0/24.  The nameservers specified at my machine are my nameserver,
> then 2 public nameservers.
> 
> I am not listed as a secondary NS in the 192.168.0.0/24 zone.  How can I
> tell it to use 192.168.0.1 for the nameserver if someone needs to lookup an
> address in 192.168.0.0/24 ?
Add this to named.conf (since you didn't give version info, I assume you
are running 8.x/9.x):
zone "0.168.192.in-addr-arpa" {
	type forward;
	forwarders { remote_site_ns1; remote_site_ns2; ...};
	forward-only;
};

If they also have a forward-mapping in the remote site (say
remote.site.com) and you want local users to be able to lookup names
then add the following statements:
zone "remote.site.com" {
	type forward;
	forwarders { remote_site_ns1; remote_site_ns2; ...};
	forward-only;
};

enjoy.
-- 
Saad -- [pgp keyid: 35592A6D http://pgp.mit.edu]
# booth slave for hire



More information about the bind-users mailing list