Skip to content

Commit

Permalink
- Update example.conf with cookie options.
Browse files Browse the repository at this point in the history
  • Loading branch information
gthess committed Dec 22, 2023
1 parent 22dc376 commit 6c82f4a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
22 December 2023: Yorgos
- Update example.conf with cookie options.

8 December 2023: Yorgos
- Merge PR #973: Use the origin (DNAME) TTL for synthesized CNAMEs as
per RFC 6672.
Expand Down
16 changes: 16 additions & 0 deletions doc/example.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ server:
# Choose deny (drop message), refuse (polite error reply),
# allow (recursive ok), allow_setrd (recursive ok, rd bit is forced on),
# allow_snoop (recursive and nonrecursive ok)
# allow_cookie (allow UDP with valid cookie or stateful transport)
# deny_non_local (drop queries unless can be answered from local-data)
# refuse_non_local (like deny_non_local but polite error reply).
# access-control: 127.0.0.0/8 allow
Expand Down Expand Up @@ -986,6 +987,13 @@ server:
# if 0(default) it is disabled, otherwise states qps allowed per ip address
# ip-ratelimit: 0

# global query ratelimit for all ip addresses with a valid DNS Cookie.
# feature is experimental.
# if 0(default) it is disabled, otherwise states qps allowed per ip address
# useful in combination with 'allow_cookie'.
# If used, suggested to be higher than ip-ratelimit, tenfold.
# ip-ratelimit-cookie: 0

# ip ratelimits are tracked in a cache, size in bytes of cache (or k,m).
# ip-ratelimit-size: 4m
# ip ratelimit cache slabs, reduces lock contention if equal to cpucount.
Expand All @@ -1007,6 +1015,14 @@ server:
# the number of servers that will be used in the fast server selection.
# fast-server-num: 3

# reply to requests containing DNS Cookies as specified in RFC 7873 and RFC 9018.
# answer-cookie: no

# secret for DNS Cookie generation.
# useful for anycast deployments.
# example value "000102030405060708090a0b0c0d0e0f".
# cookie-secret: <128 bit random hex string>

# Enable to attach Extended DNS Error codes (RFC8914) to responses.
# ede: no

Expand Down

0 comments on commit 6c82f4a

Please sign in to comment.