MiniDNS / minidns

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

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

Closed realbiz21 closed 1 week ago

realbiz21 commented 3 weeks 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/