Suped

What are IDN/Punycode domains and what does a screwed up Gmail authorization record look like?

Published 29 Jul 2025
Updated 19 Oct 2026
12 min read
Summarize with
IDN and Punycode domain labels beside Google Workspace MX verification records.
Updated on 19 Oct 2026: We clarified Google Workspace MX troubleshooting and DMARC checks for internationalized and lookalike domains.
An IDN, or internationalized domain name, is a domain that contains non-ASCII characters in its human-readable form. IDNA (Internationalized Domain Names in Applications) uses Punycode to create the ASCII-compatible label used in DNS. A domain label that starts with xn-- is a candidate Punycode-encoded IDN label. The prefix alone does not prove the label is valid.
For the example in the question, xn--ahoo-4ra.com decodes to ýahoo.com. That is not yahoo.com. It has an accented first character, so it should be treated as a lookalike domain until there is a specific business reason to trust it. Customer mail should not be routed to it without manual review.
The Gmail-looking DNS result is a separate issue. A host like swytcyeidbiwlai5tor3jug7rtovnsgthpxrwgv33is6bfobr2ha.mx-verification.google.com can be a Google-issued verification MX used during Workspace activation. It is not the production receiving host. Its presence is not proof of a mistake, but the domain cannot route normal inbound mail to Google if that verification target is the only MX and the required production MX is missing.
  1. IDN: The readable domain contains Unicode characters, such as accented Latin letters or non-Latin scripts.
  2. Punycode: An encoded IDN label begins with xn--; validate and decode it with an IDNA-aware library before review.
  3. Google MX review: A verification target can be temporary, but a production mail exchanger must also be configured as instructed.
  4. Practical rule: Decode the domain, inspect the visible name, then compare every MX target with the provider's current setup instructions.

What IDN and Punycode mean

DNS was built around ASCII labels, but people use domain names in many languages. IDN fills that gap by allowing Unicode characters in the displayed domain name while keeping the DNS form ASCII-compatible. Punycode is the conversion format that makes this work.
That design is useful for legitimate international domains. It is also easy to misunderstand in email workflows because the same label has two forms: the visible Unicode name (U-label) and the Punycode name (A-label). The IDNA definitions explain these terms. Browsers and email clients choose which form to display, so keep both forms in review logs.
Unicode domain converted to a Punycode A-label for DNS lookup and email routing.
Unicode domain converted to a Punycode A-label for DNS lookup and email routing.

Layer

What you see

Why it matters

User display
Unicode
Can resemble a trusted name
DNS label
xn--
Needs decoding before review
Mail routing
MX
Target must match receiving infrastructure
Authentication
DMARC
Reports show sources using a monitored From domain
Compact view of how the same domain concept appears in different layers.
The key point is simple: the prefix is not enough. A validator that only says the domain is syntactically valid has not answered whether the domain is safe, expected, owned by the right party, or capable of receiving mail.

IDN domains and SMTPUTF8 are different

Punycode applies to the domain after the @ sign. It does not encode the local part before @. An address such as user@exämple.com can use an ASCII local part and a Punycode domain, while an address such as josé@exämple.com also needs the SMTPUTF8 extension because the local part contains a non-ASCII character. SMTPUTF8 is part of email address internationalization (EAI).
Domain and local-part handlingtext
Unicode domain: user@exämple.com DNS-safe domain form: user@xn--exmple-cua.com Internationalized local part: josé@exämple.com Requires SMTPUTF8 support
If the receiving server does not advertise SMTPUTF8, a sender must not transmit an address with a non-ASCII local part. Converting only the domain to Punycode does not make that mailbox compatible. The SMTPUTF8 requirements also apply to raw UTF-8 message headers.
  1. Domain check: Convert the IDN domain to its DNS A-label when the application or resolver requires it.
  2. Mailbox check: Preserve the local part exactly and confirm SMTPUTF8 support before sending.
Text such as =?UTF-8?Q?Jos=C3=A9?= in a display name or subject is MIME header encoding, not Punycode. An encoded display name alone does not require SMTPUTF8 and does not establish the sender's identity.

Why xn--ahoo-4ra.com needs review

When xn--ahoo-4ra.com appears in an email address, it needs review because its decoded form visually resembles a high-trust consumer domain. The decoded name is ýahoo.com, where the first character is not the plain ASCII y. When used to deceive, this lookalike technique is called an IDN homograph or homoglyph attack. The difference is easy to miss in business software or a quick manual review. Homographs can use a single script, as described in Unicode's confusable-character guidance, so a mixed-script check alone will miss some lookalikes.
A domain can be valid in DNS and still be a bad recipient choice. Online validation often checks syntax, not intent. For IDNs, use IDNA-aware validation and compare both the Unicode name and A-label with the expected business relationship. Do not strip accents to make the names match.
  1. Do not trust syntax: A valid MX response does not establish the domain's business identity or trustworthiness.
  2. Do not trust shape: An accented or cross-script character can pass a quick human scan.
  3. Check origin: A legitimate IDN usually has a clear language and customer context.
  4. Quarantine first: Hold suspicious signup domains until a person verifies the account path.
Punycode conversion exampletext
Raw DNS label: xn--ahoo-4ra.com Decoded display form: ýahoo.com Expected plain ASCII name: yahoo.com
Legitimate IDN
  1. Context: The domain belongs to a language or market where the characters are normal.
  2. Ownership: The sender and business records point to the same organization.
  3. Routing: The MX targets match hosts used for production mail.
  4. Authentication: Messages pass DMARC for the intended domain; confirm the business identity separately.
Lookalike risk
  1. Context: The name resembles a known brand but has no clear reason to use Unicode.
  2. Ownership: The visible name creates trust that the registered domain has not earned.
  3. Routing: The production MX is missing, unexpected, or inconsistent with the claimed provider.
  4. Authentication: Passing authentication for a lookalike domain does not prove it belongs to the brand.
That last point matters for deliverability and security. The page on SPF, DKIM, and DMARC explains how the standards work together.

Why a lookalike domain can pass DMARC

The owner of a lookalike domain can publish SPF and DKIM records and send mail that passes DMARC for that domain. A pass for xn--ahoo-4ra.com does not authenticate yahoo.com. A policy on yahoo.com does not govern that separately registered domain.
DMARC requires a passing SPF or DKIM result whose authenticated domain matches the visible From domain under the applicable matching rules. Strict matching requires identical domains; relaxed matching allows the same organizational domain. RFC 9989 requires a Unicode From domain to be converted to its A-label before processing. Equivalent Unicode and Punycode forms do not inherently cause a DMARC failure.
Illustrative results for a lookalike, not a live testtext
From: Example <sender@xn--ahoo-4ra.com> Authentication-Results: mx.google.com; spf=pass smtp.mailfrom=xn--ahoo-4ra.com; dkim=pass header.d=xn--ahoo-4ra.com; dmarc=pass header.from=xn--ahoo-4ra.com
In Gmail on the web, open the message's More menu next to Reply and select Show original. Review Gmail's own Authentication-Results header and the actual From domain, rather than the sender display name. Verify an unexpected domain through a known contact channel.

How to interpret a Google MX verification record

A long target ending in mx-verification.google.com can be a Google-issued MX verification value used while activating Gmail for a Workspace domain. It is separate from the production MX that receives normal mail. Google's MX setup instructions specify smtp.google.com with priority 1 for new configurations. The legacy MX set based on aspmx.l.google.com remains supported when mail already works.
An MX record routes inbound mail. Calling it a "Gmail authorization record" confuses routing with sender authentication. SPF is a sending-host policy published in TXT, while DKIM publishes a signing key. DMARC checks the From domain against authenticated sender domains.
Broken production routingdns
; Incomplete: verification target only, no production mail exchanger ; random-token is a placeholder, not a usable verification value example.com. 3600 IN MX 1 random-token.mx-verification.google.com.
Current Google Workspace MX shapedns
; Production MX for current Google Workspace setup example.com. 3600 IN MX 1 smtp.google.com.
Do not delete or replace the verification MX merely because its hostname looks random. Compare the complete MX set with the values shown for that domain in the Google Admin console. Correct the setup when the production MX is absent, the verification value was copied incorrectly, or an obsolete record conflicts with the active mail provider. Lower MX priority numbers are preferred. After publishing the correct records, activate Gmail in the Admin console; Google allows up to 72 hours for MX changes to be recognized.
Google Admin console screenshot showing domain verification and MX setup as separate steps.
Google Admin console screenshot showing domain verification and MX setup as separate steps.

Record

Good sign

Bad sign

MX
Production targets match the active mail provider
No usable production MX
TXT
Verification or policy text
Copied into the wrong name or type
SPF
One v=spf1 TXT policy at the sending domain
Multiple v=spf1 policies at the same name
DKIM
Correct selector resolves to the public key
Wrong selector or missing key
DMARC
Valid TXT policy at _dmarc.<domain>
Missing or malformed record
How to distinguish routing and authentication records during a DNS review.

How to check IDN domains and Google MX records

A good check has two parts. First, decode and review the domain name. Second, inspect the DNS records and test delivery. For MX, compare the complete record set with the active provider's instructions and confirm that the production target resolves. Use the reviewed domain's A-label form in DNS queries. For DKIM, replace selector below with the s= value in the message's DKIM-Signature, and query the domain in its d= value.
  1. Decode first: Validate each xn-- label with an IDNA-aware library, then compare its Unicode form with the expected domain.
  2. Normalize and compare: Preserve accents and inspect visually similar characters, including lookalikes within the same script.
  3. Query records: Query SPF TXT at the SMTP MAIL FROM domain and DMARC TXT at _dmarc.<From domain>. DKIM needs a selector-specific TXT or CNAME lookup at the signing domain.
  4. Verify the MX set: Confirm that production mail exchangers are present, resolve correctly, and match the Admin console instructions.
  5. Retest after DNS changes: Check authoritative DNS first, allow cached records to expire under the previous TTL, then test inbound and outbound mail and document the working values.
DNS checks to runbash
dig +short MX example.com dig +short A smtp.google.com dig +short AAAA smtp.google.com # SPF is published as TXT at the sending domain dig +short TXT example.com # Use the DKIM selector and signing domain from the message dig +short TXT selector._domainkey.example.com dig +short CNAME selector._domainkey.example.com dig +short TXT _dmarc.example.com
For an initial authentication review, Suped's domain health checker checks published authentication settings. Use the message's DKIM selector for key checks and a real delivery test to confirm routing.
?

What's your domain score?

Deep-scan SPF, DKIM & DMARC records for email deliverability and security issues.

Review priority for suspicious domain findings
Use the highest matching band when triaging IDN and MX issues.
Normal
Low
Expected ASCII or IDN domain with working MX and verified business identity.
Review
Medium
Unfamiliar IDN or verification MX that needs an Admin console comparison.
High risk
High
Unverified brand lookalike or missing production MX; investigate before use.
Blocked
Stop
Confirmed impersonation or confirmed failure to receive required mail.
Suped's DMARC monitoring shows sending sources and authentication outcomes for monitored domains as participating receivers report them. Use inbound delivery tests to confirm MX routing; missing report data does not prove a domain sends no mail.

Monitor authentication after DNS changes

Suped is our DMARC reporting and email authentication platform. It becomes useful when a one-off DNS investigation turns into ongoing domain monitoring. A direct DNS query shows the published record, while Suped shows sending sources and authentication outcomes reported for the domains you monitor.
DMARC record detail view showing SPF, DKIM, DMARC, rDNS diagnostics, and DNS records
After an MX correction, compare sending sources and authentication results with the period before the change. DMARC aggregate reports arrive periodically; use a test message for immediate delivery confirmation.
For this issue, use Suped to investigate reported authentication failures for the affected domain and track results after the DNS correction.
  1. Source review: Check the sending IPs reported for your domain and identify unexpected sources.
  2. Record checks: The DMARC checker validates the published TXT record before rollout.
  3. Follow-up: Compare reported SPF and DKIM outcomes before and after the DNS change.
  4. Alerts: Investigate failure notifications alongside expected traffic and report arrival times.

Views from the trenches

Best practices
Decode Punycode before routing mail, then compare the Unicode name with the expected brand.
Compare every Google verification MX with the Admin console before removing the record.
Keep DNS change notes with the prior records so mail routing and policy edits remain traceable.
Common pitfalls
Accepting any domain with MX output misses domains without a usable production mail route.
Skipping identity checks for unfamiliar IDNs creates gaps when a name resembles a trusted domain.
Treating every Google verification MX as a typo can misread a valid activation record.
Expert tips
Inspect the decoded label, the raw ASCII label, and the production MX resolution together.
Review unfamiliar IDNs against the expected business identity rather than rejecting the xn-- prefix.
Use reported DMARC results for monitored domains; confirm inbound routing with a real mail test.

Marketer view

Marketer from Email Geeks says IDN domains need decoding before trust decisions because the ASCII label can hide a Unicode lookalike.
2020-11-12 - Email Geeks

Marketer view

Marketer from Email Geeks says xn--ahoo-4ra.com decodes to ýahoo.com, so it should not be treated like the expected Yahoo domain.
2020-11-12 - Email Geeks

Before resuming mail delivery

Send an inbound test from an external mailbox after the MX change, confirm receipt in the intended account, and send an outbound test to inspect authentication. Keep the reviewed Unicode and A-label forms with the DNS change notes.

Frequently asked questions

No. The xn-- prefix identifies a candidate IDN A-label, not a risk rating. Validate and decode it, then confirm the expected business identity. Legitimate international domains use Punycode.

It decodes to ýahoo.com, which has a different first character. DNS treats that as a separate domain. A quick visual scan can miss the difference, so decode before accepting the address.

No. Punycode handles internationalized domain labels after the @ sign. An ASCII local part with an A-label domain can use ordinary SMTP. A non-ASCII local part or raw UTF-8 message headers requires SMTPUTF8 support in the delivery path.

Yes. A domain can publish an MX yet lack the production mail exchanger required by its active provider. Check the full MX set, target resolution, and an inbound delivery test.

Google can issue a unique target under mx-verification.google.com during Workspace activation. It verifies setup but does not replace the production Google Workspace MX. Keep or remove it according to the Admin console instructions for that domain.

Test inbound mail and a real outbound message separately. Inspect the full MX set and the received message's authentication results, then review Suped's DMARC reports as participating receivers submit them.
DMARC monitoring

Start monitoring your DMARC reports today

Suped DMARC platform dashboard
What you'll get with Suped
Real-time DMARC report monitoring and analysis
Automated alerts for authentication failures
Clear recommendations to improve email deliverability
Protection against phishing and domain spoofing