I use bind9, where i configured two views: for my localnet i have one set of internal ip addresses, for all other i have second set of external ip addresses.
Example from my named.conf:
acl "internal" { 172.16.0.0/16; };
view "internal" {
match-clients {"internal";};
recursion yes;
allow-recursion {172.16.0.0/16; };
zone "example.ru" {
type master;
file "VIEW/example.ru.int";
};
zone "jira.example.ru" {
type master;
file "VIEW/jira.example.ru.int";
};
include "zones.conf";
};
view "external" {
match-clients {"any";};
recursion no;
zone "example.ru" {
type master;
file "VIEW/example.ru.ext";
};
zone "jira.example.ru" {
type master;
file "VIEW/jira.example.ru.ext";
};
include "zones.conf";
};
Now, i want to migrate all my zones to PowerDNS, but i need to keep second view. I can`t find how to configure it.