CheckDMARC now analyzes SPF policies, too

As SPF is a base technology for DMARC this was just a small logical step. The script can check for »real« SPF DNS records (which are rarely being used) or the TXT record of a domain for its analysis:

$ ./checkdmarc --help
Check DMARC
Checks all effective TLD subdomains of a given brand for a DMARC record and presents the results.
Synopsis
checkdmarc options... [brand]...
[brand] can be a string like 'gmx' or 'yahoo'.
Temporary files are being left behind in the current working directory for debug reasons.
Options
-c, --cleanup
     Cleanup temporary files.
--dmarc
     Check the DMARC policies for the given brand.
-h, --help
     Show this help.
--spftxt
     Check the TXT records for SPF policies.
--spfspf
     Check the SPF records for SPF policies.

The output for an SPF analysis looks like this:

$ ./checkdmarc --spftxt gmx
This script is going to make several thousand DNS request. Proceed at your own risk, iff you know what you are doing.
Type 'yes' to proceed, anything else to abort.
yes
Running 6567 queries, this may take a while ...
SERVFAIL: 22
connection timed out; no servers could be reached: 7
has no TXT record: 115
NXDOMAIN: 6282
is an alias for: 87
redirect: 28
?all: 2
~all: 7
-all: 11
redirect details:
gmx.at descriptive text "v=spf1 redirect=gmx.net"
gmx.biz descriptive text "v=spf1 redirect=gmx.net"
gmx.com.br descriptive text "v=spf1 redirect=gmx.net"
gmx.ca descriptive text "v=spf1 redirect=gmx.net"
gmx.cc descriptive text "v=spf1 redirect=gmx.net"
gmx.ch descriptive text "v=spf1 redirect=gmx.net"
gmx.cn descriptive text "v=spf1 redirect=gmx.net"
gmx.es descriptive text "v=spf1 redirect=gmx.net"
gmx.eu descriptive text "v=spf1 redirect=gmx.net"
gmx.fr descriptive text "v=spf1 redirect=gmx.net"
gmx.hk descriptive text "v=spf1 redirect=gmx.net"
gmx.ie descriptive text "v=spf1 redirect=gmx.net"
gmx.co.in descriptive text "v=spf1 redirect=gmx.net"
gmx.info descriptive text "v=spf1 redirect=gmx.net"
gmx.it descriptive text "v=spf1 redirect=gmx.net"
gmx.li descriptive text "v=spf1 redirect=gmx.net"
gmx.lu descriptive text "v=spf1 redirect=gmx.net"
gmx.com.my descriptive text "v=spf1 redirect=gmx.net"
gmx.name descriptive text "v=spf1 redirect=gmx.net"
gmx.org descriptive text "v=spf1 redirect=gmx.net"
gmx.ph descriptive text "v=spf1 redirect=gmx.net"
gmx.pt descriptive text "v=spf1 redirect=gmx.net"
gmx.ru descriptive text "v=spf1 redirect=gmx.net"
gmx.se descriptive text "v=spf1 redirect=gmx.net"
gmx.sg descriptive text "v=spf1 redirect=gmx.net"
gmx.tm descriptive text "v=spf1 redirect=gmx.net"
gmx.tw descriptive text "v=spf1 redirect=gmx.net"
?all details:
gmx.ind.br descriptive text "v=spf1 include:_spf.locaweb.com.br include:_spf.google.com ?all"
gmx.lt descriptive text "v=spf1 a mx ptr ?all"
~all details:
gmx.cl descriptive text "v=spf1 +a +mx +ip4:50.97.138.105 +a:relay.mailchannels.net ~all"
gmx.ge descriptive text "v=spf1 a mx ip4:80.77.52.171 ~all"
gmx.co.kr descriptive text "v=spf1 ip4:121.78.236.24 ~all"
gmx.com.mx descriptive text "v=spf1 a mx ptr mx:mail.gmx.com.mx ip4:148.243.230.135 ~all"
gmx.net.pl descriptive text "v=spf1 a mx ip4:85.17.198.170 ip4:85.17.198.172 ~all"
gmx.sk descriptive text "v=spf1 a mx ~all"
gmx.so descriptive text "v=spf1 include:mx.ovh.com ~all"
-all details:
gmx.com descriptive text "v=spf1 ip4:213.165.64.0/23 ip4:74.208.5.64/26 ip4:74.208.122.0/26 ip4:212.227.126.128/25 ip4:212.227.15.0/24 ip4:212.227.17.0/27 ip4:74.208.4.192/26 ip4:82.165.159.0/24 ip4:50.22.171.0/28 -all"
gmx.de descriptive text "v=spf1 ip4:213.165.64.0/23 ip4:74.208.5.64/26 ip4:212.227.126.128/25 ip4:212.227.15.0/25 ip4:212.227.17.0/27 ip4:74.208.4.192/26 ip4:82.165.159.0/24 -all"
gmx.hu descriptive text "v=spf1 +a +mx -all"
gmx.lv descriptive text "v=spf1 +a +mx -all"
gmx.net descriptive text "v=spf1 ip4:213.165.64.0/23 ip4:74.208.5.64/26 ip4:212.227.126.128/25 ip4:212.227.15.0/25 ip4:212.227.17.0/27 ip4:74.208.4.192/26 ip4:82.165.159.0/24 -all"
gmx.bjarkoy.no descriptive text "v=spf1 -all"
gmx.pl descriptive text "v=spf1 ip4:64.111.210.170 ip4:92.61.240.134 -all"
gmx.uz descriptive text "v=spf1 +a +mx -all"
gmx.com.de descriptive text "v=spf1 -all"
gmx.us.org descriptive text "v=spf1 -all"
gmx.co.com descriptive text "v=spf1 -all"

Speichere in deinen Favoriten diesen Permalink.

Schreib einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

vier × 2 =