Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gateway): update DoH resolver for .eth DNSLink #781

Merged
merged 2 commits into from
Jan 8, 2025
Merged

Conversation

lidel
Copy link
Member

@lidel lidel commented Jan 7, 2025

Ref. https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#2025-07-01:
image

Cloudflare decommissioned their resolver and started redirecting (HTTP 308) to https://dns.eth.link/dns-query which is an alias for eth.limo.

We change default to https://dns.eth.limo/dns-query to avoid redirects and cache splitting.

Closes #771 by implementing option (C)

Cloudflare decomissionned their resolver and started redirecting
(HTTP 308) to https://dns.eth.link/dns-query which is an alias for
eth.limo.

We change default to https://dns.eth.limo/dns-query
to avoid redirects and cache splitting.

Closes #771
Copy link
Contributor

@aschmahmann aschmahmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

codecov bot commented Jan 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.46%. Comparing base (ae7ab1f) to head (7eb91f8).
Report is 2 commits behind head on main.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #781      +/-   ##
==========================================
- Coverage   60.47%   60.46%   -0.01%     
==========================================
  Files         245      245              
  Lines       31133    31133              
==========================================
- Hits        18829    18826       -3     
- Misses      10629    10630       +1     
- Partials     1675     1677       +2     
Files with missing lines Coverage Δ
gateway/dns.go 37.77% <ø> (ø)

... and 8 files with indirect coverage changes

@lidel lidel changed the title fix(gateway): update DoH resolver for .eth fix(gateway): update DoH resolver for .eth DNSLink Jan 7, 2025
lidel added a commit to ipfs/kubo that referenced this pull request Jan 7, 2025
@lidel lidel marked this pull request as ready for review January 8, 2025 19:54
@lidel lidel requested a review from a team as a code owner January 8, 2025 19:54
Copy link
Member Author

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI green, merging.

@lidel lidel merged commit 5518e1a into main Jan 8, 2025
16 checks passed
@lidel lidel deleted the fix/doh-eth branch January 8, 2025 19:56
lidel added a commit to ipfs/kubo that referenced this pull request Jan 14, 2025
lidel added a commit to ipfs/kubo that referenced this pull request Jan 14, 2025
* fix(dns): update default DNSLink resolvers

Depends on
- ipfs/boxo#781
- ipfs/boxo#782

* chore: latest boxo main and go-doh-resolver v0.5.0

makes error message better, informing which URL failled

* chore: p2p-forge v0.2.1+

this removes acmez/v2 and fixes go vet

* chore: latest boxo with DoH fixes

commit from main branch that includes:
ipfs/boxo#645
ipfs/boxo#782
ipfs/boxo#781
lidel added a commit to ipfs/kubo that referenced this pull request Jan 14, 2025
* fix(dns): update default DNSLink resolvers

Depends on
- ipfs/boxo#781
- ipfs/boxo#782

* chore: latest boxo main and go-doh-resolver v0.5.0

makes error message better, informing which URL failled

* chore: p2p-forge v0.2.1+

this removes acmez/v2 and fixes go vet

* chore: latest boxo with DoH fixes

commit from main branch that includes:
ipfs/boxo#645
ipfs/boxo#782
ipfs/boxo#781

(cherry picked from commit b021a00)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: resolver.cloudflare-eth.com is down; change default ENS resolver?
3 participants