How to forward specific zones?

Baird, Josh jbaird at follett.com
Wed Nov 28 20:39:50 UTC 2007


It sounds like you want to use per-zone forwarding:

zone "blah.com" {
    type forward;
    forwarders { 0.0.0.0; };
};

This will forward all blah.com requests to 0.0.0.0.

Josh Baird

-----Original Message-----
From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org] On
Behalf Of Cruise X Overide
Sent: Wednesday, November 28, 2007 2:34 PM
To: bind-users at isc.org
Subject: How to forward specific zones?

I've done a lot of reading on the internet on BIND as well as tried to
seek help on IRC. But I just can't seem to find the config that will let
me forward zone requests.

Here is a link to the overview of the network in question


PC #1 - ISP
--------------
> Internet gateway
> DHCP server
> Local (as in 10km away, very fast) internet DNS server


PC #2 - Remote Private network
---------------------------------------
> DNS for *.private.net
> 10.0.0.0/8bit
> vpn server


PC #3 - My PC
----------------------
> Currently just running bind as a caching nameserver (default fedora
config)
> VPN client of PC #2
> tun0 (vpn) 10.0.0.0/8bit
> eth0 currently receives dhcp (public ip) address from PC #1
> eth1 connected to internal lan 192.168.0.0/24bit


How do I get PC #3 to:
1. Send only *.private.net requests to PC #2
2. Send any other request to PC #1
3. Act as a DNS server for other PCs connected to eth1


If anyone could even point me to the topic i need to search for to do
this I would be grateful. All i could find on the net is how to host a
DNS server, but not how to forward specific zone requests from your dns
server to another dns server.

Thanks, any help is much appreciated

CxO




More information about the bind-users mailing list