Knowledge Base ISC Main Website Ask a Question/Contact ISC
I want to forward all DNS queries from my caching nameserver to another server but configure exceptions for some domains - how?
Author: ISC Support Reference Number: AA-00302 Views: 3454 Created: 2011-05-16 14:04 Last Updated: 2011-05-16 14:04 0 Rating/ Voters

Forwarding can be configured globally and per zone. This is useful where the global policy differs from the configuration required for some of the zones hosted or handled by the nameserver. Many combinations are possible, including no global forwarding except for that configured for specific zones. Similarly it's possible to configure global forwarding but disable it for select zones.

The example below shows a global forwarding policy coupled with special handling for rbldnsd:

options {
        forward only;
        forwarders { <ip.of.primary.nameserver>; };
};

zone "sbl-xbl.spamhaus.org" {
        type forward;
        forward only;
        forwarders { <ip.of.rbldns.server> port 530; };
};

zone "list.dsbl.org" {
        type forward;
        forward only;
        forwarders { <ip.of.rbldns.server> port 530; };
};


© 2001-2017 Internet Systems Consortium

For assistance with problems and questions for which you have not been able to find an answer in our Knowledge Base, we recommend searching our community mailing list archives and/or posting your question there (you will need to register there first for your posts to be accepted). The bind-users and the dhcp-users lists particularly have a long-standing and active membership.

ISC relies on the financial support of the community to fund the development of its open source software products. If you would like to support future product evolution and maintenance as well having peace of mind knowing that our team of experts are poised to provide you with individual technical assistance whenever you call upon them, then please consider our Professional Subscription Support services - details can be found on our main website.

Feedback
  • There is no feedback for this article
Quick Jump Menu