Changeset 857
- Timestamp:
- 09/15/22 17:21:00 (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB/ExportBIND.pm
r856 r857 181 181 # at figuring out which zones are visible/present in which views 182 182 if ($viewlist) { 183 my $tmpconf = "$dnsdb->{bind_zone_conf}.$$"; ##fixme: split filename for prefixing 184 open BINDCONF, ">", $tmpconf; 185 183 186 foreach my $view (@{$viewlist}) { 184 187 #print Dumper($view); 185 #print BINDCONF "view $view->{location} {\n";186 print "view $view->{location} {\n";188 print BINDCONF "view $view->{location} {\n"; 189 # print "view $view->{location} {\n"; 187 190 # could also use an acl { ... }; statement, then match-clients { aclname; };, but that gets hairy 188 191 # note that some semantics of data visibility need to be handled by the record export, since it's … … 190 193 # same as a BIND view with match-clients { any; }; 191 194 if ($view->{iplist}) { 192 #print BINDCONF " match-clients { ".join("; ", $view->iplist)."; };\n";193 print " match-clients { ".join("; ", split(/[\s,]+/, $view->{iplist}))."; };\n";195 print BINDCONF " match-clients { ".join("; ", $view->iplist)."; };\n"; 196 # print " match-clients { ".join("; ", split(/[\s,]+/, $view->{iplist}))."; };\n"; 194 197 } else { 195 #print BINDCONF " match-clients { any; };\n";196 print " match-clients { any; };\n";198 print BINDCONF " match-clients { any; };\n"; 199 # print " match-clients { any; };\n"; 197 200 } 198 201 foreach my $zone (@{$viewzones{$view->{location}}}) { … … 202 205 print "};\n\n"; 203 206 } # foreach @$viewlist 207 rename $tmpconf, $dnsdb->{bind_zone_conf}; 204 208 } # if $viewlist 205 209 -
trunk/dnsdb.conf
r856 r857 29 29 30 30 ## BIND export options 31 # config fragment populated by exports from dnsadmin 32 #bind_zone_conf = /var/named/zones.conf 33 # forward zone path 31 34 #bind_export_zone_path = /var/named/zones/%view/db.%zone 32 35 # because they're fish of a different colour 33 36 #bind_export_reverse_zone_path = /var/named/zones/%view/db.%arpazone 37 # export all hostnames as full dot-terminated FQDNs? 38 #bind_export_fqdn = 1 34 39 35 40 ## DNS data template options
Note:
See TracChangeset
for help on using the changeset viewer.