Ignore:
Timestamp:
06/27/25 14:08:46 (4 days ago)
Author:
Kris Deugau
Message:

/trunk

Commit some tagalongs in ExportBIND.pm that go along with the general
validator update and tinydns export tweak for RPZ zones from r888

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB/ExportBIND.pm

    r893 r895  
    354354        # Check for out-of-zone data
    355355        $host = $domain if $host eq '@';
    356         if ($host !~ /$domain$/i) {
     356        if ($domain !~ /\.rpz$/ && $host !~ /$domain$/i) {
    357357          warn "Not exporting out-of-zone record $host $type $val, $ttl (zone $domain)\n";
    358358          next;
     
    588588#    ($host,$val) = __revswap($host,$val) if $revrec eq 'y';
    589589#    print {$zonefiles->{$loc}} "$host  $ttl    IN      CNAME   $val\n" or die $!;
    590     my $recdata = "$host.       $ttl    IN      CNAME   $val.\n";
     590    my $recdata;
     591    if ($zone =~ /\.rpz$/) {
     592      # RPZ data stored and published as-is
     593      $recdata = "$host        $ttl    IN      CNAME   $val\n";
     594    } else {
     595      $recdata = "$host.       $ttl    IN      CNAME   $val.\n";
     596    }
    591597    __recprint($zonefiles, $loclist, $loc, $recdata);
    592598  } # CNAME
Note: See TracChangeset for help on using the changeset viewer.