From 08526adad7242bd8bb0f6223f2015f5cabd93841 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Wed, 8 Jan 2025 21:23:08 +0100 Subject: [PATCH] fix(gateway): update DoH resolver for .crypto DNSLink (#782) fix(gateway): update DoH resolver for .crypto TLD Cloudflare decomissionned their resolver and started redirecting (HTTP 308) to https://dns.eth.link/dns-query which is an alias for eth.limo. That endpoint does not support resolving DNSLink of .crypto TLD and always returns no results. This change switched to DoH resolver provided by UD project. See #772 for more info and the future of .crypto resolver --- CHANGELOG.md | 1 + gateway/dns.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 964a587ed..28c7d3b3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ The following emojis are used to highlight certain changes: ### Fixed - `gateway` Fix redirect URLs for subdirectories with characters that need escaping. [#779](https://github.com/ipfs/boxo/pull/779) +- `gateway` The default DNSLink resolver for `.crypto` TLD changed to `https://resolver.unstoppable.io/dns-query` [#782](https://github.com/ipfs/boxo/pull/782) ### Security diff --git a/gateway/dns.go b/gateway/dns.go index b49ce3be6..d69328547 100644 --- a/gateway/dns.go +++ b/gateway/dns.go @@ -11,7 +11,7 @@ import ( var defaultResolvers = map[string]string{ "eth.": "https://dns.eth.limo/dns-query", - "crypto.": "https://resolver.cloudflare-eth.com/dns-query", + "crypto.": "https://resolver.unstoppable.io/dns-query", } func newResolver(url string, opts ...doh.Option) (madns.BasicResolver, error) {