Fix display of CNAME/A records in log file. print_dns_result() will show the number of records found _and_ put a heading for this type of record into the logfile. So we can't get both right (short of changing print_dns_result(), what I don't like to do just now): either the count will be too high, as we can't subtract wrong records from it, or the "heading" will follow after the list of records in the log. So we'll have to live with the former, until print_dns_result() can be fixed. Signed-off-by: Thomas Hochstein <thh@inter.net>
Fix annoying error message (Release 0.6.1). checkmail prints an error message like Argument "AI_NUMERICHOST" isn't numeric in subroutine entry at /usr/lib/perl5/Net/DNS/Resolver/Base.pm line 743. every time. Change shebang to "perl -w" from "perl -W". Update version number (in comment line too, where it was stillt 0.5). Update TODO and Changelog. Include TODO in repository. Release 0.6.1 (maintenance). Signed-off-by: Thomas Hochstein <thh@inter.net>
Don't temp-fail on random address check. If the address has successfully been checked, but the subsequent check of a random address is failing with a 4xx response (or a network problem pp.), the address has been validated and should be handled that way. Signed-off-by: Thomas Hochstein <thh@inter.net>
Complete rewrite. - use strict; - modularize code - refactor application logic - more verbose output - test MXes in order of precedence - cope with multi-line responses - slightly change meaning of exit status - batch processing: set exit status to highest generated value Fixes #9. Fixes #10. Signed-off-by: Thomas Hochstein <thh@inter.net>