Changeset 86 for trunk/uribl/export-uridb
- Timestamp:
- 09/11/25 17:57:24 (3 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/uribl/export-uridb
r80 r86 29 29 use URIdb 2.0; 30 30 31 my $uridb = new URIdb;32 33 31 die "Usage: export-uridb <list> [type]\n" 34 32 if !$ARGV[0]; … … 42 40 $uridb->connect; 43 41 44 my %config;45 my $sth = $dbh->prepare("SELECT key,value FROM misc");46 $sth->execute;47 while (my ($key,$value) = $sth->fetchrow_array) {48 $config{$key} = $value;49 }50 51 print "\$SOA 900 ".($config{blzone} ? $config{blzone} : 'uri').".dnsbl systems.company.com 0 1200 600 600 900\n".52 "\$NS 3600 127.0.0.1\n".53 "\$TTL 900\n";54 55 42 $uridb->export($mode,*STDOUT);
Note:
See TracChangeset
for help on using the changeset viewer.