@@ -56,14 +56,18 @@ let
5656 ipv4-edns-size: ${toString cfg.ipv4EDNSSize}
5757 do-ip6: ${yesOrNo cfg.ipv6}
5858 ipv6-edns-size: ${toString cfg.ipv6EDNSSize}
59+ log-time-asci: ${yesOrNo cfg.logTimeAscii}
5960 ${maybeString "nsid: " cfg.nsid}
6061 port: ${toString cfg.port}
62+ reuseport: ${yesOrNo cfg.reuseport}
63+ round-robin: ${yesOrNo cfg.roundRobin}
6164 server-count: ${toString cfg.serverCount}
6265 ${if cfg.statistics == null then "" else "statistics: ${toString cfg.statistics}"}
6366 tcp-count: ${toString cfg.tcpCount}
6467 tcp-query-count: ${toString cfg.tcpQueryCount}
6568 tcp-timeout: ${toString cfg.tcpTimeout}
6669 verbosity: ${toString cfg.verbosity}
70+ ${maybeString "version: " cfg.version}
6771 xfrd-reload-timeout: ${toString cfg.xfrdReloadTimeout}
6872 zonefiles-check: ${yesOrNo cfg.zonefilesCheck}
6973
@@ -381,6 +385,14 @@ in
381385 '';
382386 };
383387
388+ logTimeAscii = mkOption {
389+ type = types.bool;
390+ default = true;
391+ description = ''
392+ Log time in ascii, if false then in unix epoch seconds.
393+ '';
394+ };
395+
384396 nsid = mkOption {
385397 type = types.nullOr types.str;
386398 default = null;
@@ -397,6 +409,17 @@ in
397409 '';
398410 };
399411
412+ reuseport = mkOption {
413+ type = types.bool;
414+ default = pkgs.stdenv.isLinux;
415+ description = ''
416+ Wheter to enable SO_REUSEPORT on all used sockets. This lets multiple
417+ processes bind to the same port. This speeds up operation especially
418+ if the server count is greater than one and makes fast restarts less
419+ prone to fail
420+ '';
421+ };
422+
400423 rootServer = mkOption {
401424 type = types.bool;
402425 default = false;
@@ -406,6 +429,8 @@ in
406429 '';
407430 };
408431
432+ roundRobin = mkEnableOption "round robin rotation of records";
433+
409434 serverCount = mkOption {
410435 type = types.int;
411436 default = 1;
@@ -456,6 +481,16 @@ in
456481 '';
457482 };
458483
484+ version = mkOption {
485+ type = types.nullOr types.str;
486+ default = null;
487+ description = ''
488+ The version string replied for CH TXT version.server and version.bind
489+ queries. Will use the compiled package version on null.
490+ See hideVersion for enabling/disabling this responses.
491+ '';
492+ };
493+
459494 xfrdReloadTimeout = mkOption {
460495 type = types.int;
461496 default = 1;