Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default value and use more sane examples #296

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions content/plugins/bufsize.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ 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
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
}
Expand All @@ -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
}
Expand Down