[ale] DNS

Jim Popovitch jimpop at yahoo.com
Tue Apr 10 21:17:54 EDT 2007


On Tue, 2007-04-10 at 21:00 -0400, Brandon Colbert wrote:
> Hello all,
> 
> Does anyone know how to setup BIND so that it only resolves certain
> domains that I tell it to? For example, to resolve only: google.com,
> cnn.com , and yahoo.com?  No other domains should not be resloved. It
> would be nice to redirect all other queries to another IP or domain.

Sure. Use bind views to accomplish this.
In /etc/bind/named.options.local, or named.conf setup something like
this:

zone "google.com" {
        type forward;
        forward only;
        forwarders { 216.239.34.10; 216.239.36.10; };
};
zone "239.216.in-addr.arpa" {
        type forward;
        forward only;
        forwarders { 216.239.34.10; 216.239.36.10; };
};


zone "home" {
        type forward;
        forward only;
        forwarders { 192.168.1.1; };
};
zone "1.168.192.in-addr.arpa" {
        type forward;
        forward only;
        forwarders { 192.168.1.1; };
};


zone "work" {
        type forward;
        forward only;
        forwarders { 10.10.1.1; 10.10.10.1 };
};
zone "10.10.in-addr.arpa" {
        type forward;
        forward only;
        forwarders { 10.10.1.1; 10.10.10.1 };
};

hth,

-Jim P.





More information about the Ale mailing list