Commit 55520347 authored by Ondřej Surý's avatar Ondřej Surý

Revert default EDNS0 buffer size to 4096

parent 17b8cfc8
...@@ -542,7 +542,7 @@ For when listening on ``localhost`` just doesn't cut it. ...@@ -542,7 +542,7 @@ For when listening on ``localhost`` just doesn't cut it.
.. function:: net.bufsize([udp_bufsize]) .. function:: net.bufsize([udp_bufsize])
Get/set maximum EDNS payload available. Default is 1452, increase it in cases when authoritatives send large payloads over UDP and don't support TCP. Get/set maximum EDNS payload available. Default is 4096.
You cannot set less than 512 (512 is DNS packet size without EDNS, 1220 is minimum size for DNSSEC) or more than 65535 octets. You cannot set less than 512 (512 is DNS packet size without EDNS, 1220 is minimum size for DNSSEC) or more than 65535 octets.
Example output: Example output:
......
...@@ -62,7 +62,7 @@ static inline int __attribute__((__cold__)) kr_error(int x) { ...@@ -62,7 +62,7 @@ static inline int __attribute__((__cold__)) kr_error(int x) {
*/ */
#define KR_DNS_PORT 53 #define KR_DNS_PORT 53
#define KR_EDNS_VERSION 0 #define KR_EDNS_VERSION 0
#define KR_EDNS_PAYLOAD 1452 /* Default UDP payload (max unfragmented UDP is 1452B) */ #define KR_EDNS_PAYLOAD 4096 /* Default UDP payload (max unfragmented UDP is 1452B) */
/* /*
* Address sanitizer hints. * Address sanitizer hints.
......
Markdown is supported
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