Skip to content

Revert to using miekg/dns functionality for serveUDP and serveTCP ins… - #42

Open
sbocconi wants to merge 1 commit into
mainfrom
correct_udp_tcp
Open

Revert to using miekg/dns functionality for serveUDP and serveTCP ins…#42
sbocconi wants to merge 1 commit into
mainfrom
correct_udp_tcp

Conversation

@sbocconi

@sbocconi sbocconi commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Use miekg/dns functionality to serve UDP and TCP requests.

Due to a misunderstanding previous versions of the proxy had custom code to handle TCP and UDP requests.

The issue is that miekg/dns serveDNS only unpacks the Question section and leaves further unpacking to the handler, as also described in the comment to the Handler interface.

This was preventing the proxy's handler to recognise the packet as an UPDATE LEASE, as it was expecting an unpacked msg.

Now the handler is wrapped to receive an unpacked message.

Base automatically changed from testing to main September 3, 2026 13:45
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