/usr/share/zentyal/stubs/dns/named.conf.local.mas is in zentyal-dns 2.3.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | <%args>
@domains
@inaddrs
@intnets
$confDir
$dynamicConfDir
</%args>
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
acl "trusted" {
% if (@intnets != 0) {
% foreach my $intnet (@intnets) {
<% $intnet %>;
% }
% }
localhost;
localnets;
};
% if(@domains != 0) {
% foreach my $dom (@domains) {
zone "<% $dom->{'name'} %>" {
type master;
% if ( $dom->{'dynamic'} ) {
file "<% $dynamicConfDir %>/db.<% $dom->{'name'} %>";
% } else {
file "<% $confDir %>/db.<% $dom->{'name'} %>";
% }
% if ( $dom->{'dynamic'} ) {
update-policy {
// The only allowed dynamic updates are A records
grant <% $dom->{'name'} %>. subdomain <% $dom->{'name'} %>. A TXT;
// Grant from localhost
grant local-ddns zonesub any;
};
% }
};
% }
% }
% if(@inaddrs != 0) {
% foreach my $inaddr (@inaddrs) {
zone "<% $inaddr->{'ip'} %>.in-addr.arpa" {
type master;
% if ( $inaddr->{'dynamic'} ) {
file "<% $dynamicConfDir %>/db.<% $inaddr->{'ip'} %>";
update-policy {
// The only allowed dynamic updates are PTR records
% foreach my $keyName (@{$inaddr->{'keyNames'}}) {
grant <% $keyName %>. subdomain <% $inaddr->{'ip'} %>.in-addr.arpa. PTR TXT;
% }
// Grant from localhost
grant local-ddns zonesub any;
};
% } else {
file "<% $confDir %>/db.<% $inaddr->{'ip'} %>";
% }
};
% }
% }
|