Skip to content
Snippets Groups Projects
Verified Commit af5ddacc authored by Lukas Jezek's avatar Lukas Jezek Committed by Tomas Krizek
Browse files

daemon: lower EDNS buffer size to 1232

parent 74237b5b
Branches
Tags
1 merge request!920daemon: lower EDNS buffer size to 1232
......@@ -7,6 +7,7 @@ Incompatible changes
Improvements
------------
- lower default EDNS buffer size to 1232 (#538, #300, !920)
- net: split the EDNS buffer size into upstream and downstream (!1026)
- lua-http doh: answer to /dns-query endpoint as well as /doh (!1069)
- improve resiliency against UDP fragmentation attacks (disable PMTUD) (!1061)
......
......@@ -62,7 +62,7 @@ static inline int KR_COLD kr_error(int x) {
#define KR_DNS_DOH_PORT 443
#define KR_DNS_TLS_PORT 853
#define KR_EDNS_VERSION 0
#define KR_EDNS_PAYLOAD 4096 /* Default UDP payload (max unfragmented UDP is 1452B) */
#define KR_EDNS_PAYLOAD 1232 /* Default UDP payload; see https://dnsflagday.net/2020/ */
#define KR_CACHE_DEFAULT_TTL_MIN (5) /* avoid bursts of queries */
#define KR_CACHE_DEFAULT_TTL_MAX (6 * 24 * 3600) /* 6 days, like the root NS TTL */
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment