Global zones visible in all views

Solution 1:

If you split your common zones into a separate configuration file, then you can use the 'include' directive to include that file in each of your views.

All your non-split zones go in /etc/named/common-zones.conf:

zone "example.com" IN {
        type master;
        file "zones/example.com.db";
};

Then include that file in /etc/named.conf:

view "dmz" {
    match-clients { dmz_clients; };
    include "/etc/named/common.zones.conf";
    zone "other-zone.com" IN {
        type master;
        file "zones/other-zone_DMZ.com.db";
   };
}
view "lan" {
    match-clients { lan_clients; };
    include "/etc/named/common.zones.conf";
    zone "other-zone.com" IN {
        type master;
        file "zones/other-zone_LAN.com.db";
   };
}