From d61eef02783b0bdcbca2fe42c46310a0bb41b79d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Fri, 30 Jun 2023 18:18:37 +0200 Subject: [PATCH] Change default value and use more sane examples Resolves #295 --- content/plugins/bufsize.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/plugins/bufsize.md b/content/plugins/bufsize.md index a7475217..19d719b6 100644 --- a/content/plugins/bufsize.md +++ b/content/plugins/bufsize.md @@ -10,7 +10,7 @@ date = "2022-05-10T17:23:57.8775785" ## Description *bufsize* limits a requester's UDP payload size. It prevents IP fragmentation, mitigating certain DNS vulnerabilities. -This will only affect queries that have an OPT RR. +This will only affect queries that have an OPT RR (EDNS(0)). ## Syntax ```txt @@ -18,14 +18,14 @@ bufsize [SIZE] ``` **[SIZE]** is an int value for setting the buffer size. -The default value is 512, and the value must be within 512 - 4096. +The default value is 1232, and the value must be within 512 - 4096. Only one argument is acceptable, and it covers both IPv4 and IPv6. ## Examples Enable limiting the buffer size of outgoing query to the resolver (172.31.0.10): ```corefile . { - bufsize 512 + bufsize 1500 forward . 172.31.0.10 log } @@ -34,7 +34,7 @@ Enable limiting the buffer size of outgoing query to the resolver (172.31.0.10): Enable limiting the buffer size as an authoritative nameserver: ```corefile . { - bufsize 512 + bufsize 1220 file db.example.org log }