Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchesA Node.js email check should distinguish three outcomes: invalid when an address fails your documented syntax policy, domain mail route found when syntax passes and DNS returns usable mail-routing evidence, and unknown when checks cannot support a reliable conclusion. An MX record says something about routing for a domain; it does not prove that a particular mailbox exists or will accept a message.
What the three states mean
Keep syntax acceptance separate from domain-level routing. A parser can decide whether an input fits the address forms your application accepts. A DNS lookup can report mail-exchanger records for the domain. Neither check, alone or together, verifies the local-part—the text before @—against a recipient mailbox.
| State | Use it when | What it does not mean |
|---|---|---|
invalid |
The input fails your documented input policy or parser. | It is not a conclusion drawn merely from a DNS error. |
domain_mail_route_found |
Syntax passes and the domain has usable MX evidence under your policy. | It does not establish that the mailbox exists or that delivery will succeed. |
unknown |
A DNS failure, timeout, ambiguous DNS outcome, unsupported form, or unavailable check prevents a firm classification. | It is not another word for invalid. |
SMTP explicitly recognizes that an address can appear valid yet not be reasonably verifiable in real time. RFC 5321 describes such cases, including when a server relays for another server or domain. Remote-server policy and behavior can also affect acceptance. For that reason, treat this gate as a screening aid, not proof of deliverability. RFC 5321
Choose and document your syntax policy
For ordinary signup forms
If your product intentionally accepts only a practical subset of internet addresses, document that policy and use a maintained parser or carefully scoped validation library. Avoid claiming that one hand-written regular expression implements the complete email-address standards. Narrow rules can reject legitimate, less common forms.
#1 Best Overall
- POWERFUL SECURITY KEY: The Security Key C NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
- WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key C NFC secures 100 of your favorite accounts, including email, password managers, and more.
- FAST & CONVENIENT LOGIN: Plug in your Security Key C NFC via USB-C and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
- TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
- BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.
For broader compatibility
Quoted local-parts, address literals, internationalized addresses, and differences between envelope and header formats complicate parsing. RFC 3696 says quoted forms are uncommon but must be supported by applications processing user-provided addresses. It states historical length limits of 64 octets for the local-part and 255 octets for the domain part; those are octet figures from the 2004 RFC, not JavaScript character-count rules for every internationalized address. RFC 3696
One possible library is Haraka’s @haraka/email-address. Its project documentation describes envelope and header parsing, quoted local-parts, address literals, internationalized addresses, and ESM/CommonJS entry points. Review its supported input flavor, current version, and maintenance status against your own product requirements before adopting it; those project features are not an independent assessment.
Rank #2
- POWERFUL SECURITY KEY: The YubiKey 5 NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
- WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5 NFC secures 100+ of your favorite accounts, including email, password managers, and more
- FAST & CONVENIENT LOGIN: Plug in your YubiKey 5 NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
- MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
- PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts
Resolve MX records with Node.js
Node.js exposes resolveMx(domain) from node:dns/promises. A successful result is an array of records containing priority and exchange. This is a domain-level DNS query, not a mailbox lookup. The implementation below shows the outcome shape and deliberately leaves policy decisions—especially DNS edge cases—to your application. Node.js v26.10.0 DNS API documentation
import { resolveMx } from 'node:dns/promises';
async function assessEmail(input) {
const parsed = parseUnderYourDocumentedPolicy(input);
if (!parsed.ok) {
return { status: 'invalid', reason: 'syntax' };
}
try {
const records = await resolveMx(parsed.domain);
if (records.length === 0) {
return { status: 'unknown', reason: 'no-mx-result' };
}
return {
status: 'domain_mail_route_found',
signal: 'mx-records-found',
mx: records.map(({ priority, exchange }) => ({ priority, exchange }))
};
} catch (error) {
return { status: 'unknown', reason: 'dns-query-inconclusive' };
}
}
parseUnderYourDocumentedPolicy is an application-specific placeholder, not a Node.js API. Supply it with a real parser and ensure it returns a normalized domain only when the input passes your chosen policy. The example is illustrative, not tested production code.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →Rank #3
- Security Key : Protect your online accounts against unauthorized access by using FIDO2 and U2F authentication with T110. It's the world's most protective security key that works with windows, Mac OS, Linux as well as Chrome, Firefox, Edge and many other major browsers.
- Certified with the new FIDO2 standard, T110 provides the benefit of fast login and strong protection against phishing, account takeover as well as many other online attactks.
- Works with : Bank of America, Github, Google, Microsoft, DUO, Twitter, Facebook, Dropbox, Apple, ebay, BINANCE, mor and more.
- Fits USB-A port : Insert the T110 security key into the USB-A port of each service and log in conveniently with one touch
- For the driver download and user guide, please visit TrustKey Solutions Home support page.
Define DNS outcomes before using them
A successful MX lookup with usable records supports the narrow claim “mail exchanger records found.” Other DNS results need deliberate handling. RFC 5321 permits resolvable fully qualified domain names through MX records or address records, while resolveMx specifically retrieves MX records. A policy that interprets an empty MX result as invalid may therefore reject domains whose mail routing is established differently.
- Usable MX records: return
domain_mail_route_foundif syntax passed and your policy considers the records usable. - No MX records or explicit non-mail configuration: do not automatically treat an empty result as proof that the submitted mailbox is invalid. Decide whether address-record fallback is within scope; otherwise return
unknown. - Resolver error or timeout: return
unknown, notinvalid. The lookup did not establish the address’s status. - Transient or ambiguous result: preserve
unknownand, if appropriate, allow a retry or later verification rather than making a permanent user-level judgment.
Node’s documented MX resolver provides the lookup mechanism; it does not choose your product’s fallback, timeout, or retry policy. Set those choices to match the risk of the action being gated.
Rank #4
- POWERFUL SECURITY KEY: The YubiKey 5C NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
- WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5C NFC secures 100+ of your favorite accounts, including email, password managers, and more
- FAST & CONVENIENT LOGIN: Plug in your YubiKey 5C NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
- MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
- PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts
Choose what your application does with unknown
Make the outcome useful to the caller instead of forcing every check into a binary boolean. For a low-friction signup, one reasonable policy is to allow account creation and require email confirmation before enabling sensitive actions. A contact form might accept the submission while flagging the address for follow-up. A higher-risk workflow may defer the decision until another verification step. The appropriate action depends on the consequences of a false acceptance or rejection; DNS uncertainty alone is not evidence that a user entered a bad address.
Keep the result name and user-facing message precise. “Syntax accepted” describes the parser result; “mail exchanger records found” describes the DNS signal. Reserve “mailbox exists,” “deliverable,” and “guaranteed valid” for evidence these checks do not provide.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallPick the implementation breadth that fits
| Approach | Best fit | Trade-offs to assess |
|---|---|---|
| Narrow application syntax policy plus Node.js MX lookup | A simple flow accepting ordinary internet addresses. | Accepted forms, false-rejection risk, lookup latency, DNS failure handling, and explicit unknown behavior. |
| Standards-oriented parser plus Node.js MX lookup | Products that need quoted or legacy forms, address literals, internationalized cases, or multiple syntax contexts. | Supported grammar, envelope versus header mode, package maintenance, performance needs, and product policy. |
The parser project documents its own performance characterization, but that is not an independent benchmark. Select a parser based on the grammar and maintenance you need, and measure performance in your own application if it matters.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




