diff options
author | 2019-11-14 07:37:45 +0000 | |
---|---|---|
committer | 2019-11-14 07:37:45 +0000 | |
commit | 8cc034eeceb766ffe966bdd29923f8325dd3f4e5 (patch) | |
tree | b5e8444294dcfeb8a278267e067c84c773120a21 /plugin | |
parent | 1743ca3f026b25eb5b0311f134a5b25bb0b66321 (diff) | |
download | coredns-8cc034eeceb766ffe966bdd29923f8325dd3f4e5.tar.gz coredns-8cc034eeceb766ffe966bdd29923f8325dd3f4e5.tar.zst coredns-8cc034eeceb766ffe966bdd29923f8325dd3f4e5.zip |
plugin/bufsize: add usecase description (#3437)
* add usecase
Signed-off-by: yukihira <yukihira.lab@gmail.com>
* fix some comments
Signed-off-by: ykhr53 <yukihira.lab@gmail.com>
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/bufsize/README.md | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/plugin/bufsize/README.md b/plugin/bufsize/README.md index bd1d232d1..297941059 100644 --- a/plugin/bufsize/README.md +++ b/plugin/bufsize/README.md @@ -16,6 +16,7 @@ The default value is 512, 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 @@ -24,7 +25,15 @@ Only one argument is acceptable, and it covers both IPv4 and IPv6. } ``` -If you run a resolver on 172.31.0.10, the buffer size of incoming query on the resolver will be set to 512 bytes. +Enable limiting the buffer size as an authoritative nameserver: +```corefile +. { + bufsize 512 + file db.example.org + log +} +``` ## Considerations -For now, if a client does not use EDNS, this plugin adds OPT RR.
\ No newline at end of file +- Setting 1232 bytes to bufsize may avoid fragmentation on the majority of networks in use today, but it depends on the MTU of the physical network links. +- For now, if a client does not use EDNS, this plugin adds OPT RR.
\ No newline at end of file |