Changeset 901 for trunk/DNSDB.pm
- Timestamp:
- 08/11/25 16:34:14 (6 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r897 r901 205 205 206 206 # BIND-style zone export 207 bind_export_conf_path => 'zones.conf', 207 208 # should arguably inherit something from BIND defaults for /var/named? 208 bind_export_zone_path => 'zones/', 209 bind_export_conf_path => 'zones.conf', 210 bind_export_shortlines => 0, 209 bind_export_zone_path => 'zones/db.%zone', 210 # just in case someone wants reverse zones separate from forward zones 211 bind_export_zone_path => 'zones/db.%zone', 212 bind_export_fqdn => 1, 211 213 bind_export_autoexpire_ttl => 15, 212 214 … … 261 263 # Several settings are booleans. Handle multiple possible ways of setting them. 262 264 for my $boolopt ('log_failures', 'force_refresh', 'lowercase', 'usecache', 263 'bind_export_ shortlines', 'template_skip_0', 'template_skip_255', 'autotxt') {265 'bind_export_fqdn', 'template_skip_0', 'template_skip_255', 'autotxt') { 264 266 if ($self->{$boolopt} ne '1' && $self->{$boolopt} ne '0') { 265 267 # true/false, on/off, yes/no all valid. … … 2214 2216 $cfg->{bind_export_conf_path} = $1 if m{^bind_export_conf_path\s*=\s*([a-z0-9/_.%-]+)}i; 2215 2217 $cfg->{bind_export_zone_path} = $1 if m{^bind_export_zone_path\s*=\s*([a-z0-9/_.%-]+)}i; 2216 $cfg->{bind_export_shortlines} = $1 if /^bind_export_shortlines\s*=\s*([a-z01]+)/i; 2218 $cfg->{bind_export_reverse_zone_path} = $1 if m{^bind_export_reverse_zone_path\s*=\s*([a-z0-9/_.%-]+)}i; 2219 $cfg->{bind_export_fqdn} = $1 if /^bind_export_fqdn\s*=\s*([a-z01]+)/i; 2217 2220 $cfg->{bind_export_autoexpire_ttl} = $1 if /^bind_export_autoexpire_ttl\s*=\s*(\d+)/; 2218 2221 $cfg->{force_refresh} = $1 if /^force_refresh\s*=\s*([a-z01]+)/i;
Note:
See TracChangeset
for help on using the changeset viewer.