feat(iroh-dns): fall back to default resolver config on wasi - #1
Open
lann wants to merge 1 commit into
Open
Conversation
hickory-resolver cfg-gates `system_conf::read_system_conf` out on wasi, so `system_config()` does not compile there. Use an empty `ResolverConfig` plus default options instead: resolver construction succeeds, lookups fail. Relay-only deployments (the current wasi consumers) never issue lookups. Part of running iroh on wasm32-wasip2 components (polymorph-components/polymorph-iroh#25).
lann
added a commit
to polymorph-components/polymorph-iroh
that referenced
this pull request
Aug 7, 2026
The iroh/iroh-relay/iroh-dns deltas now live as reviewable PR branches on the fork (lann/iroh#1 iroh-dns resolver-config fallback, #2 relay connect over the datagram pipe, #3 net_report probe gate), merged into its `polymorph-iroh` branch: upstream main at the same pinned rev (735958f8) plus exactly the patches the vendor tree carried, verified byte-identical before the swap. The three guests consume the branch as a git dependency; iroh-base is patched to the same branch in the blobs and ping-demo guests so iroh and iroh-blobs share one copy of its types (crates-io iroh-base 1.0.3 otherwise coexists as a second, type-incompatible instance). netwatch stays vendored: its upstream is n0-computer/net-tools, not the iroh repo, so it is out of scope for the fork. Verified: all three guests build; iroh-relay-ws Node and browser runs (migration 51ms, phase-2 p50 410-664us), iroh-blobs verified fetches across the migration, and the full ping-demo Playwright suite pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hickory-resolver cfg-gates
system_conf::read_system_confout on wasi, sosystem_config()does not compile for wasm32-wasip2. Use an emptyResolverConfigplus defaultResolverOptsinstead: resolver construction succeeds, lookups fail. Relay-only deployments — the current wasi consumers — never issue lookups.Smallest of the wasi enablement set from polymorph-components/polymorph-iroh#25; staged here for eventual upstreaming. Siblings: the relay datagram-pipe seam and the net_report probe gate. Merged together into the long-lived
polymorph-irohbranch that the component experiments consume.