DNS forward fails with SERVFAIL/timeout when using 1.1.1.1 fallback #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Location:
mycelium/src/dns.rs-forward_dns_fallbackProblem: When no overlay routes exist, resolver forwards to 1.1.1.1. Raw UDP from
[::]:0to IPv4 may fail on macOS. UsingResolverConfig::cloudflare()includes IPv6 nameservers (2606:4700:4700::1111); on networks with broken IPv6, the resolver tries IPv6 first and times out (~5s) before falling back to IPv4.Symptom:
dig @127.0.0.1 example.comreturns SERVFAIL or times out;dig @1.1.1.1 example.comworks directly.Fix: Use IPv4-only nameservers (1.1.1.1, 1.0.0.1) via
NameServerConfigGroup::from_ips_clearwith filteredCLOUDFLARE_IPS. SetResolverOpts::timeoutto 2 seconds for faster failover.