git.iko.soy/typeable/nixpkgs
on master help sign in
nsd: 4.1.9 -> 4.1.12

4.1.12 ====== Bugfixes -------- Fix malformed edns query assertion failure, reported by Michal Kepien (NASK). 4.1.11 ====== Features -------- * When tcp is more than half full, use short timeout for tcp session. * Patch for {max,min}-{refresh,retry}-time from YAMAGUCHI Takanori. * Fix #790: size-limit-xfr can stop NSD from downloading infinite zone transfer data size, from Toshifumi Sakaguchi. Fixes CVE-2016-6173 JVN#63359718 JPCERT#91251865. Bugfixes -------- * Fix build without IPv6, patch from Zdenek Kaspar. * Fix #783: Trying to run a root server without having configured it silently gives wrong answers. * Fix #782: Serve DS record but parent zone has no NS record. * Fix nsec3 missing for nsec3 signed parent and child for DS at zonecut. 4.1.10 ====== Features -------- * ip-freebind: yesno option in nsd.conf sets IP_FREEBIND socket option for Linux, binds to interfaces and addresses that are down. * NSD includes AAAA before A for queries over IPV6 (in delegations). And TC is set if no glue can be provided with a delegation because of packet size. * print notice that nsd is starting before taking off. Bugfixes -------- * Fix for openssl 1.1.0, HMAC_CTX size not exported from openssl. * Fix #751: NSD fails to occlude names below a DNAME. * If set without nsd.db print "" as the default in the man pages. * Fix #755: NSD spins after a zone update and a lot of TCP queries. * Fix for NSEC3 with zone signed without exact match for empty nonterminals, the answer for that domain gets closest encloser. * #772 Document that recvmmsg has IPv6 problems on some linux kernels. 4.1.9 ===== Bugfixes -------- * Change the nsd.db file version because of nanosecond precision fix.

commit553a3295c126fd9e73635bcde7dc1714a230c3f2 authorChristoph Hrdinka <c.git@hrdinka.at> dateTue 27 Sep 2016, 00:10 (10 years ago) parent900a04e
2 files changed+58−4
nixos/modules/services/networking/nsd.nix+56−2 pkgs/servers/dns/nsd/default.nix+2−2
nixos/modules/services/networking/nsd.nix+56−2
@@ -71,6 +71,7 @@ let
7171 # interfaces
7272 ${forEach " ip-address: " cfg.interfaces}
7373
74+ ip-freebind: ${yesOrNo cfg.ipFreebind}
7475 hide-version: ${yesOrNo cfg.hideVersion}
7576 identity: "${cfg.identity}"
7677 ip-transparent: ${yesOrNo cfg.ipTransparent}
@@ -84,7 +85,7 @@ let
8485 reuseport: ${yesOrNo cfg.reuseport}
8586 round-robin: ${yesOrNo cfg.roundRobin}
8687 server-count: ${toString cfg.serverCount}
87− ${if cfg.statistics == null then "" else "statistics: ${toString cfg.statistics}"}
88+ ${maybeToString "statistics: " cfg.statistics}
8889 tcp-count: ${toString cfg.tcpCount}
8990 tcp-query-count: ${toString cfg.tcpQueryCount}
9091 tcp-timeout: ${toString cfg.tcpTimeout}
@@ -117,7 +118,8 @@ let
117118 '';
118119
119120 yesOrNo = b: if b then "yes" else "no";
120− maybeString = pre: s: if s == null then "" else ''${pre} "${s}"'';
121+ maybeString = prefix: x: if x == null then "" else ''${prefix} "${s}"'';
122+ maybeToString = prefix: x: if x == null then "" else ''${prefix} ${toString s}'';
121123 forEach = pre: l: concatMapStrings (x: pre + x + "\n") l;
122124
123125
@@ -146,6 +148,11 @@ let
146148 ${forEach " rrl-whitelist: " zone.rrlWhitelist}
147149 ${maybeString "zonestats: " zone.zoneStats}
148150
151+ ${maybeToString "max-refresh-time: " zone.maxRefreshSecs}
152+ ${maybeToString "min-refresh-time: " zone.minRefreshSecs}
153+ ${maybeToString "max-retry-time: " zone.maxRetrySecs}
154+ ${maybeToString "min-retry-time: " zone.minRetrySecs}
155+
149156 allow-axfr-fallback: ${yesOrNo zone.allowAXFRFallback}
150157 ${forEach " allow-notify: " zone.allowNotify}
151158 ${forEach " request-xfr: " zone.requestXFR}
@@ -241,6 +248,44 @@ let
241248 '';
242249 };
243250
251+ maxRefreshSecs = mkOption {
252+ type = types.nullOr types.int;
253+ default = null;
254+ description = ''
255+ Limit refresh time for secondary zones. This is the timer which
256+ checks to see if the zone has to be refetched when it expires.
257+ Normally the value from the SOA record is used, but this option
258+ restricts that value.
259+ '';
260+ };
261+
262+ minRefreshSecs = mkOption {
263+ type = types.nullOr types.int;
264+ default = null;
265+ description = ''
266+ Limit refresh time for secondary zones.
267+ '';
268+ };
269+
270+ maxRetrySecs = mkOption {
271+ type = types.nullOr types.int;
272+ default = null;
273+ description = ''
274+ Limit retry time for secondary zones. This is the timeout after
275+ a failed fetch attempt for the zone. Normally the value from
276+ the SOA record is used, but this option restricts that value.
277+ '';
278+ };
279+
280+ minRetrySecs = mkOption {
281+ type = types.nullOr types.int;
282+ default = null;
283+ description = ''
284+ Limit retry time for secondary zones.
285+ '';
286+ };
287+
288+
244289 notify = mkOption {
245290 type = types.listOf types.str;
246291 default = [];
@@ -366,6 +411,15 @@ in
366411 '';
367412 };
368413
414+ ipFreebind = mkOption {
415+ type = types.bool;
416+ default = false;
417+ description = ''
418+ Whether to bind to nonlocal addresses and interfaces that are down.
419+ Similar to ip-transparent.
420+ '';
421+ };
422+
369423 ipTransparent = mkOption {
370424 type = types.bool;
371425 default = false;
pkgs/servers/dns/nsd/default.nix+2−2
@@ -13,11 +13,11 @@
1313}:
1414
1515stdenv.mkDerivation rec {
16− name = "nsd-4.1.9";
16+ name = "nsd-4.1.12";
1717
1818 src = fetchurl {
1919 url = "http://www.nlnetlabs.nl/downloads/nsd/${name}.tar.gz";
20− sha256 = "1wn8jm5kpp81m88c77j97850mnmd87yaw8qp3xsdwcakcd6j44dq";
20+ sha256 = "fd1979dff1fba55310fd4f439dc9f3f4701d435c0ec4fb9af533e12c7f27d5de";
2121 };
2222
2323 buildInputs = [ libevent openssl ];