Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 9 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 '15 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 '15 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.