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

Request: increase default udp payload size buffer to recommended 1232 bytes #142

Closed
realbiz21 opened this issue Jul 1, 2024 · 2 comments · Fixed by #143
Closed

Request: increase default udp payload size buffer to recommended 1232 bytes #142

realbiz21 opened this issue Jul 1, 2024 · 2 comments · Fixed by #143

Comments

@realbiz21
Copy link
Contributor

Latest guidance[1] suggests using buffer sizes of 1232 bytes, which is optimized to reduce IP fragmentation as well as the need to switch to TCP. The default udpPayloadSize in minidns is 1024 bytes.

For example, a DNSSEC-validated DNSKEY record for <Root> will return UDP truncation with a buffer size of 1024 bytes. At present, the DNS payload is 1139 bytes.

dig +dnssec +bufsize=1024 DNSKEY .

Is there any opposition to increasing minidns' default size from 1024 to 1232?

[1]: https://www.dnsflagday.net/2020/#action-dns-software-vendors reads:

It is important for DNS software vendors to comply with DNS standards, and to use a default EDNS buffer size (1232 bytes) that will not cause fragmentation on typical network links. Relevant standards include RFC 7766, RFC 6891 section 6.2.3. and RFC 6891 section 6.2.4.. The motivation for this effort is described in IETF draft intarea-frag-fragile section 6.1 and IETF draft iab-protocol-maintenance.

@Flowdalic
Copy link
Collaborator

Is there any opposition to increasing minidns' default size from 1024 to 1232?

None at all, PRs welcome. Please also include the reference to the URL in the commit message.

realbiz21 added a commit to realbiz21/minidns that referenced this issue Jul 2, 2024
DNS flag day of 2020 addressed optimum DNS message sizes to avoid IP fragmentation and minimize the usage of TCP. The recommendation for DNS software vendors was to "use a default EDNS buffer size" of 1232 bytes.

Fixes MiniDNS#142.
    
Reference: https://www.dnsflagday.net/2020/#action-dns-software-vendors
Reference: https://blog.cloudflare.com/dns-flag-day-2020/
@realbiz21
Copy link
Contributor Author

@Flowdalic - is PR #143 sufficient or did you have an alternate approach in mind?

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 a pull request may close this issue.

2 participants