DNS auth 401 "no MCP public key found" despite correct, globally-propagated base64 TXT record
Summary
DNS authentication (mcp-publisher login dns) fails with 401 no MCP public key found in DNS TXT records, even though the required MCP proof TXT record is correctly published, well-formed, and globally propagated. The registry's resolver appears to be serving/caching a stale negative result: every public resolver and the authoritative nameserver return the correct base64 Ed25519 key, but the registry still cannot see it after ~3 hours.
Environment
mcp-publisherversion: 1.8.1- Domain:
solides.com.br(apex TXT record, authoritative = AWS Route 53, TTL 60s) - Auth method:
login dns
What the publisher expects (from login dns output)
Expected proof record:
v=MCPv1; k=ed25519; p=SKhuBvoz+KAh+PdxO6WHDunygJ03s6ahwSbR6FR3wtw=
What is actually published (and globally propagated)
The TXT record on the solides.com.br apex is identical to the expected proof, is a single value (no 255-char chunking, no duplicate v=MCPv1), with TTL 60s. Verified just now against 5 resolvers plus the authoritative NS:
| Resolver | Returns |
|---|---|
| 8.8.8.8 (Google) | v=MCPv1; k=ed25519; p=SKhuBvoz+KAh+PdxO6WHDunygJ03s6ahwSbR6FR3wtw= |
| 1.1.1.1 (Cloudflare) | identical |
| 9.9.9.9 (Quad9) | identical |
| 208.67.222.222 (OpenDNS) | identical |
| ns-1666.awsdns-16.co.uk (authoritative Route 53) | identical |
Reproduce:
dig +short TXT solides.com.br @8.8.8.8 | grep MCPv1
Actual error
Error: failed to get token: failed to exchange dns signature: token exchange failed with status 401:
{"title":"Unauthorized","status":401,"detail":"DNS authentication failed",
"errors":[{"message":"no MCP public key found in DNS TXT records"}]}
Likely cause
The record was previously published for a few days in hex encoding (p=48a8..., 64 chars) before being corrected to the spec-required base64 encoding. We suspect the registry's internal DNS resolver has a stale cache / negative-cache entry for solides.com.br TXT that is outliving the record's 60s TTL (3h+ and counting), so it never re-fetches the corrected base64 key. The public internet has fully converged on the correct value.
Ask
Could you confirm which resolver the registry backend uses for DNS auth, and whether its cache for solides.com.br TXT can be flushed / its TTL honored? Happy to provide any further diagnostics.
(Note: the p= value above is an Ed25519 public key — safe to share for reproduction.)
I looked at this from outside the registry and I think the record itself is the problem, not a cache.
As of 2026-10-13 04:55 UTC, the authoritative Route 53 server returns this for the MCP record (hex, so nothing in my tooling can rewrite it):
$ dig +short TXT solides.com.br @ns-1666.awsdns-16.co.uk | grep MCP | xxd
00000000: 2276 3d4d 4350 7631 3b20 6b3d 6564 3235 "v=MCPv1; k=ed25
00000010: 3531 393b 2070 3d5b 5245 4441 4354 4544 519; p=[REDACTED
00000020: 3a20 6372 6564 656e 7469 616c 5d3d 220a : credential]=".
So the published value is literally p=[REDACTED: credential]=, not the base64 key. 8.8.8.8 and 1.1.1.1 return the same. That looks like a placeholder from a secret-redacting tool that ended up in the record (and possibly in the resolver table above too, if the same tool produced it).
Why the registry says "no MCP public key found": the parser only accepts base64 characters after p= (common.go#L42), so [ stops the match, zero keys are parsed and you get the DNS error at common.go#L289. I fed today's 15 live TXT records into DNSAuthHandler.ExchangeToken on main (11b7b0e) with a mock resolver, and it returns exactly no MCP public key found in DNS TXT records. The lookup itself is fine: Go's resolver gets all 15 records in about 70 ms, well inside the 5 second timeout in dns.go#L87.
Fix: replace the value with the exact "Expected proof record" line that mcp-publisher login dns prints (v=MCPv1; k=ed25519; p=<44 base64 chars ending in =>), then check the raw bytes before retrying:
dig +short TXT solides.com.br @ns-1666.awsdns-16.co.uk | grep MCPv1 | xxd
With a 60s TTL it should work within a minute or two of the change.
Prepared with help from Claude Code; I ran the DNS queries and the registry handler test myself.
Rechecked the authoritative DNS server on 4 November 2026. The MCP TXT record still contains the literal value v=MCPv1; k=ed25519; p=[REDACTED: credential]=, which is not a valid base64 public key and explains the “no MCP public key found” error.
Please replace it with the exact public proof record printed by mcp-publisher login dns, then retry after DNS propagation. Closing this as a configuration issue based on the current evidence. If it still fails with the correct public proof published, please reopen with the current error and lookup results. Do not share your private key.