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?

server=/foo.com/10.0.10.1
server=/vpn.foo.com/8.8.8.8
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 {
        10.0.10.1;
    };
};

zone "vpn.foo.com" IN {
    type forward;
    forwarders {
        8.8.8.8;
    };
};
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

Your Answer

 
discard

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.