Skip to content

feat: add DNS-over-TCP support alongside UDP listener - #56

Open
Schalla89 wants to merge 2 commits into
LinkTed:masterfrom
Schalla89:feat/tcp-dns-listener
Open

feat: add DNS-over-TCP support alongside UDP listener#56
Schalla89 wants to merge 2 commits into
LinkTed:masterfrom
Schalla89:feat/tcp-dns-listener

Conversation

@Schalla89

Copy link
Copy Markdown
  • Implemented TcpListener bound to the configured listen address & port
  • Added RFC 1035 TCP DNS frame handler (2-byte length prefix)
  • Refactored query resolution pipeline to process both UDP and TCP queries through unified cache and DoH upstream logic

Kevin Schaller added 2 commits July 29, 2026 03:04
- Implemented TcpListener bound to the configured listen address & port
- Added RFC 1035 TCP DNS frame handler (2-byte length prefix)
- Refactored query resolution pipeline to process both UDP and TCP queries through unified cache and DoH upstream logic
- Prevents premature TCP socket teardown when upstream lookup times out or fails
- Ensures compliance with DNS over TCP standards by sending proper RCode::ServFail response
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.

1 participant