Changeset 901 for trunk/DNSDB.pm


Ignore:
Timestamp:
08/11/25 16:34:14 (6 hours ago)
Author:
Kris Deugau
Message:

/trunk

Unravel the BIND export options, make them a consistent group, and scrap
extras that aren't used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r897 r901  
    205205
    206206                # BIND-style zone export
     207                bind_export_conf_path   => 'zones.conf',
    207208                # 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,
    211213                bind_export_autoexpire_ttl      => 15,
    212214
     
    261263  # Several settings are booleans.  Handle multiple possible ways of setting them.
    262264  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') {
    264266    if ($self->{$boolopt} ne '1' && $self->{$boolopt} ne '0') {
    265267      # true/false, on/off, yes/no all valid.
     
    22142216      $cfg->{bind_export_conf_path}   = $1 if m{^bind_export_conf_path\s*=\s*([a-z0-9/_.%-]+)}i;
    22152217      $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;
    22172220      $cfg->{bind_export_autoexpire_ttl} = $1 if /^bind_export_autoexpire_ttl\s*=\s*(\d+)/;
    22182221      $cfg->{force_refresh}     = $1 if /^force_refresh\s*=\s*([a-z01]+)/i;
Note: See TracChangeset for help on using the changeset viewer.