Email DNS Check

DNS OPERATIONS GUIDE

Email DNS monitoring

A healthy mail setup depends on records at several DNS names. Check the route for incoming mail, then use a sent message to identify the names involved in authentication.

Reviewed by Mira John Updated

Find the DNS names from a real message

For incoming mail, MX is at the recipient domain. SPF is evaluated using the SMTP envelope sender domain, or the HELO identity when the reverse path is empty. Check the domain in the receiving system’s Authentication-Results rather than assuming it matches the visible From address.

For DKIM, read d= and s= in DKIM-Signature. Check TXT at s._domainkey.d, replacing s and d with those values. Providers sometimes publish a CNAME there. Query the selector you actually saw in the message.

Look for the DMARC TXT policy at _dmarc under the visible From domain. If a subdomain has no policy there, look up its parent names. RFC 9989 describes how receivers walk the DNS tree to select a policy. DMARC evaluates whether a passing SPF or DKIM identity aligns with the visible From domain.

Make a usable baseline

Record the MX set, the exact SPF text, each active DKIM selector, and the DMARC policy. Keep the queried name alongside every value so subdomains and vendors stay distinct.

A long TXT record can be split into multiple quoted strings within one record. Join the strings when reading its value. Two separate TXT records beginning with v=spf1 at the same name are a different problem and can cause SPF PermError.

For DKIM rotation, publish the new key, verify that receivers see it, then switch signing to the new selector. Keep the previous selector through the delivery and retry window for already signed mail.

dig +noall +answer TXT example.com
dig +noall +answer TXT selector1._domainkey.example.com
dig +noall +answer TXT _dmarc.example.com

Verify from the receiving end

Send a test message to an independent mailbox and inspect its Authentication-Results. Look for the SPF identity, the DKIM signing domain and selector, and the DMARC outcome. For a failing check, use the reported identity to choose the next DNS query.

When a resolver returns an older record, compare the current authoritative answer before editing the zone again. During incidents, save the DNS results alongside a timestamped message sample so the receiving verdict can be matched to the published records.

Check transport, reports and sender identity

For a self-managed sender, check PTR for the IP observed by the receiver and resolve the hostname forward. Confirm the EHLO name on a real connection. For DANE, verify DNSSEC and TLSA at _25._tcp under the exchanger hostname.

dig +short -x 192.0.2.25
dig +dnssec _25._tcp.mx1.example.net TLSA

References

Related guides

MX record monitoring

Check mail exchanger targets and priorities, compare MX records across public DNS resolvers, and set a baseline for mail routing changes.

Nameserver monitoring

Compare NS answers, verify the parent delegation against the zone apex, and check mail DNS and DNSSEC during a nameserver migration.

No MX record found

Find out why an MX lookup is empty, returns NXDOMAIN or SERVFAIL, or shows 0 . Check the authoritative zone and restore the intended mail route.

Email DNS troubleshooting

Fix missing or incorrect SPF, DKIM and DMARC records. Trace conflicting DNS answers and check MTA-STS, TLS reporting and BIMI.