feat: add bounded DNS-over-TCP fallback - #4
Draft
Joshua Tenner (jtenner) wants to merge 5 commits into
Draft
Conversation
Joshua Tenner (jtenner)
force-pushed
the
agent/dns-tcp-fallback
branch
from
July 26, 2026 02:08
d43c035 to
55dc5c1
Compare
Joshua Tenner (jtenner)
force-pushed
the
agent/dns-tcp-fallback
branch
from
July 26, 2026 02:13
55dc5c1 to
11e133f
Compare
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.
Stack status
agent/tls-full-gridfe6172deddbfa6Summary
Adds opt-in bounded DNS-over-TCP fallback without changing the six-function
wago_net_dnsABI or exposing raw TCP authority to guests.dns.EnableTCPFallback(maxResponseBytes, maxServiceAttempts)TEMPORARY_FAILUREunless the host opts intcp/register, binding, instance operations, ABI, namespace facet,net.tcp, andwago_net_tcpValidation
Passed locally and in hosted run
30186935628on the current head. Run30184217704passed the original functional head:go test ./...go test -shuffle=on -count=1 ./...go vet ./...internal/backend/lneto/dns, publicdns, and the root selective-composition matrix; current hosted CI completed all 123 supported packages in 48m04s18,176 B/op, 2 allocations before;1,792 B/op, 1 allocation after in the documented benchmark configuration)Explicitly incomplete
This does not add DNS-over-IPv6, DNS-over-TLS, DNS-over-HTTPS, DNSSEC validation, TCP connection pooling/reuse, raw TCP guest handles, or a portable TinyGo TLS implementation. One private TCP stream is used per fallback query and is closed deterministically.