From 3b0fae8727f548e0160433504169e307854c7d0b Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Tue, 7 Jan 2025 16:15:47 +0100 Subject: [PATCH] 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. Closes #772 --- CHANGELOG.md | 1 + gateway/dns.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa46c5b84..a1b92ef73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,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 376c42669..e79280d5f 100644 --- a/gateway/dns.go +++ b/gateway/dns.go @@ -11,7 +11,7 @@ import ( var defaultResolvers = map[string]string{ "eth.": "https://resolver.cloudflare-eth.com/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) {