Skip to content

Commit

Permalink
fix(gateway): update DoH resolver for .crypto DNSLink (#782)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lidel authored Jan 8, 2025
1 parent 5518e1a commit 08526ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion gateway/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 08526ad

Please sign in to comment.