Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

In dnsmasq, it's possible to forward domains to different nameservers. How can I do that in named?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

This should work for BIND9:

zone "foo.com" IN {
    type forward;
    forwarders {;

zone "vpn.foo.com" IN {
    type forward;
    forwarders {;
share|improve this answer
You might also need to replace dnssec-validation auto; with dnssec-validation no; in named.conf.options. –  mivk Dec 30 '13 at 17:12
Does this also supports wildcards? –  petersaints Aug 24 at 18:52
The BIND 9.9 Configuration Reference doesn't explicitly say, but since the zone name needs to be a valid zone that could be used with the $ORIGIN directive in a zone file, I don't believe you can use wildcards for the zone name. –  James Sneeringer Aug 24 at 19:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.