Changeset 89 for trunk/uribl


Ignore:
Timestamp:
09/16/25 15:00:35 (3 days ago)
Author:
Kris Deugau
Message:

/trunk/uribl

Tweak handling of the blzone value; use it as a full base domain rather
than something anchored to .dnsbl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/uribl/URIdb.pm

    r88 r89  
    2424use warnings;
    2525use Exporter;
     26
    2627use DBI;
    2728use NetAddr::IP;
     
    188189
    189190##fixme:  should probably rejig this key to point to a FQDN rather than a "something that will get published under .dnsbl"
    190   my $blzone = ($self->{misc}{blzone} ? $self->{misc}{blzone} : 'uri').".dnsbl";
     191  my $blzone = ($self->{misc}{blzone} ? $self->{misc}{blzone} : 'uri.dnsbl');
    191192  my $bladmin = ($self->{misc}{bladmin} ? $self->{misc}{bladmin} : 'systems.company.com');
    192193  my $blttl = ($self->{misc}{ttl} ? $self->{misc}{ttl} : '900');
     
    194195
    195196  if ($target eq 'rbldnsd') {
    196     print $blfh "\$SOA 900 $blzone.dnsbl $bladmin 0 1200 600 600 900\n".
     197    print $blfh "\$SOA 900 $blzone $bladmin 0 1200 600 600 900\n".
    197198        "\$NS 3600 127.0.0.1\n".
    198199        "\$TTL $blttl\n";
     
    216217    }
    217218  } elsif ($target eq 'tinydns') {
    218     print $blfh "Z$blzone.dnsbl:$blzone.dnsbl:$bladmin::600:600:600:600\n";
    219     print $blfh "\&$blzone.dnsbl:127.0.0.1::900\n";
     219    print $blfh "Z$blzone:$blzone:$bladmin::600:600:600:600\n";
     220    print $blfh "\&$blzone:127.0.0.1::900\n";
    220221    $sth = $dbh->prepare("SELECT uri FROM urilist WHERE list=2");
    221222    $sth->execute;
Note: See TracChangeset for help on using the changeset viewer.