#!/usr/bin/perl # # Converts a bld dump printed by bldread to a zone file. # # Olivier Beyssac # use Date::Format; use strict; my $domain = "FILLME"; my $ns0 = "FILLME"; my $ip0 = "FILLME"; my $ns1 = "FILLME"; my $ip1 = "FILLME"; my $date = time2str("%Y%m%d%H", time()); print <) { if (/^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+);/) { print "$4.$3.$2.$1 IN A 127.0.0.1\n\t\tTXT \"Blacklisted by postmaster\@$domain\"\n"; } }