From 6db8155e379f69d97285da4cba6dc176d28238d6 Mon Sep 17 00:00:00 2001 From: Christoph Hrdinka Date: Wed, 18 Mar 2015 21:01:35 +0100 Subject: nsd: Update from 4.1.0 -> 4.1.1 --- nixos/modules/services/networking/nsd.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'nixos/modules') diff --git a/nixos/modules/services/networking/nsd.nix b/nixos/modules/services/networking/nsd.nix index 140b7ed2da37..707bb38ec02d 100644 --- a/nixos/modules/services/networking/nsd.nix +++ b/nixos/modules/services/networking/nsd.nix @@ -107,6 +107,7 @@ let zone: name: "${name}" zonefile: "${stateDir}/zones/${name}" + ${maybeString "zonestats: " zone.zoneStats} ${maybeString "outgoing-interface: " zone.outgoingInterface} ${forEach " rrl-whitelist: " zone.rrlWhitelist} @@ -270,6 +271,19 @@ let Use imports or pkgs.lib.readFile if you don't want this data in your config file. ''; }; + + zoneStats = mkOption { + type = types.nullOr types.str; + default = null; + example = "%s"; + description = '' + When config.nsd.zoneStats is set to true NSD is able of collecting + statistics per zone. All statistics of this zone(s) will be added + to the group specified by this given name. Use "%s" to use the zones + name as the group. The groups are output from nsd-control stats + and stats_noreset. + ''; + }; }; }; -- cgit 1.4.1