Skip to content

Commit

Permalink
Change default value and use more sane examples
Browse files Browse the repository at this point in the history
Resolves coredns#295
  • Loading branch information
pemensik committed Jun 30, 2023
1 parent ad24b71 commit d61eef0
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit d61eef0

Please sign in to comment.