Menu

Can this email domain receive mail? MX, null MX and the A-record fallback in Node.js
📰

Can this email domain receive mail? MX, null MX and the A-record fallback in Node.js

DEV Community: database·Ali Ahmed·10 days ago
#LVM5DkRB
#devtodatabase#devto#dev#domain#address
Long article (917 words) — no AI summary yet.
Reading 0:00
15s threshold

A DNS check on an email address can prove the address is bad , but never that it's good . If the domain doesn't exist , or publishes a null MX (an MX record of 0 . , which means "this domain accepts no email", RFC 7505), the address can't receive mail: mark it invalid . If the domain has MX records , or has no MX but has an A or AAAA record (mail servers then deliver to that address, the "implicit MX" from RFC 5321), all you've learned is that the domain could receive mail: the honest answer is unknown , because the mailbox itself was never checked. I tested this with live lookups. The surprise: all six typo domains I tried, from gmial.com to outlok.com , pass the DNS check , two with real MX records and four through the A-record fallback.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.