MiniDNS / minidns

DNS library for Android and Java SE
Other
226 stars 61 forks source link

[client] use 1232 byte udp payload size buffer by default #143

Closed realbiz21 closed 4 months ago

realbiz21 commented 4 months ago

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 #142.

Reference: https://www.dnsflagday.net/2020/#action-dns-software-vendors Reference: https://blog.cloudflare.com/dns-flag-day-2020/