diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-12-26 12:41:01 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-12-26 12:41:01 +0100 |
commit | 40a81be49f78c3d1cc7ef322b175edc658399158 (patch) | |
tree | 4dc0f3fdbe1c84946adbdddb3eeebf5a61ce6bb7 | |
parent | a8a052aa3cce6eff86e41bffc03f847c9207e944 (diff) | |
download | nixos-40a81be49f78c3d1cc7ef322b175edc658399158.tar nixos-40a81be49f78c3d1cc7ef322b175edc658399158.tar.gz nixos-40a81be49f78c3d1cc7ef322b175edc658399158.tar.bz2 nixos-40a81be49f78c3d1cc7ef322b175edc658399158.tar.xz nixos-40a81be49f78c3d1cc7ef322b175edc658399158.zip |
vidhar: unbound: optimization
-rw-r--r-- | hosts/vidhar/default.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index 8f378e6f..568faac3 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix | |||
@@ -276,6 +276,21 @@ | |||
276 | interface = ["127.0.0.1" "10.141.0.1" "::0"]; | 276 | interface = ["127.0.0.1" "10.141.0.1" "::0"]; |
277 | access-control = ["0.0.0.0/0 allow" "::/0 allow"]; | 277 | access-control = ["0.0.0.0/0 allow" "::/0 allow"]; |
278 | root-hints = "${pkgs.dns-root-data}/root.hints"; | 278 | root-hints = "${pkgs.dns-root-data}/root.hints"; |
279 | |||
280 | num-threads = 12; | ||
281 | so-reuseport = true; | ||
282 | msg-cache-slabs = 16; | ||
283 | rrset-cache-slabs = 16; | ||
284 | infra-cache-slabs = 16; | ||
285 | key-cache-slabs = 16; | ||
286 | |||
287 | rrset-cache-size = "100m"; | ||
288 | msg-cache-size = "50m"; | ||
289 | outgoing-range = 8192; | ||
290 | num-queries-per-thread = 4096; | ||
291 | |||
292 | so-rcvbuf = "4m"; | ||
293 | so-sndbuf = "4m"; | ||
279 | }; | 294 | }; |
280 | }; | 295 | }; |
281 | }; | 296 | }; |