DMARC_LOOKUP(1p)
π DMARC_LOOKUP β¨
okay bestie, welcome to dmarc_lookup, a 1p-section manual page for the dmarc_lookup command π«Ά she looks up the DMARC policy for a domain. that's the whole vibe. let's get into it π
πΈ NAME πΈ
dmarc_lookup β look up DMARC policy for a domain πβ¨
π SYNOPSIS π
dmarc_lookup example.com [ --verbose ]
literally that's it. one domain, optional --verbose, iconic π
π¦ DESCRIPTION π¦
so what she does is query the DNS for a DMARC policy for a (sub)domain π and then she displays any found results as the DNS record, as a perl object. very demure, very perl π
in the simplest case β like, the case where the domain name in the email From header matches the Organizational Domain β this is roughly equivalent to the following commands:
dig +short _dmarc.example.com TXT
print $_->txtdata."\n"
for Net::DNS::Resolver->new(dnsrch=>0)->send('_dmarc.example.com','TXT')->answer;
ngl that's basically the same energy, just with more sparkle β¨
BUT. plot twist π when the domain name in the email From header (that's header_from, bestie, remember the name) is not an Organizational Domain (ex: www.example.com), an attempt is made to determine the O.D. using the Mozilla Public Suffix List π and when the O.D. differs from the header_from, a second DNS query is sent to _dmarc.[O.D.]. two queries, one queen, no cap π₯
π EXAMPLES π
a DMARC record in DNS format looks like this:
v=DMARC1; p=reject; adkim=s; aspf=s; rua=mailto:dmarc@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:
and yeah, the original list of "other ways" is right here β it's empty bestie, she said "are:" and then closed the section π (not a typo, that's just what the page says π)
π SEE ALSO π
Mail::DMARC::Policyβ go read that one next, she's the moment π
π AUTHORS π
- Matt Simerson
<msimerson@cpan.org>π«Ά - Davide Migliavacca
<shari@cpan.org>πΈ - Marc Bradshaw
<marc@marcbradshaw.net>π§
and that's the whole page, bestie!! π this one's from perl v5.40.1, dated 2026-07-07, and it lives in section DMARC_LOOKUP(1p) π slay, go look up some DMARC records, periodt π
π¦ where this page comes from
- ubuntu stonking: libmail-dmarc-perl 1.20260306-1ubuntu1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms