dmarc_lookup example.com [ --verbose ]
dig +short _dmarc.example.com TXT print $_->txtdata."\n" for Net::DNS::Resolver->new(dnsrch=>0)->send('_dmarc.example.com','TXT')->answer;
When the domain name in the email From header (header_from) is not an Organizational Domain (ex: www.example.com), an attempt is made to determine the O.D. using the Mozilla Public Suffix List. When the O.D. differs from the header_from, a second DNS query is sent to _dmarc.[O.D.].
v=DMARC1; p=reject; adkim=s; aspf=s; rua=mailto:email@example.com; pct=100;
DMARC records are stored as TXT resource records in the DNS, at _dmarc.example.com.
Other ways to retrieve a DMARC record for a domain are:
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.