options { directory "/var/lib/named"; % if isp_dns1 or isp_dns2: forward first; forwarders { % if isp_dns1: ${isp_dns1}; % endif % if isp_dns2: ${isp_dns2}; % endif }; % endif listen-on-v6 { none; }; % if bind_addr1 or bind_addr2: listen-on { % if bind_addr1: ${bind_addr1}; % endif % if bind_addr2: ${bind_addr2}; % endif }; % endif pid-file "/var/run/named/named.pid"; }; zone "." IN { type hint; file "root.hint"; }; zone "localhost" IN { type master; file "localhost.zone"; allow-update { none; }; notify no; }; zone "127.in-addr.arpa" IN { type master; file "127.0.0.zone"; allow-update { none; }; notify no; }; % for zone in zones: zone "${zone.name}" IN { type master; file "${zone.name}.zone"; allow-update { none; }; notify no; }; % endfor