aszlig 1eeeceb9c7
nixos/nsd: Allow to configure root zone
When trying to run NSD to serve the root zone, one gets the following
error message:

error: illegal name: '.'

This is because the name of the zone is used as the derivation name for
building the zone file. However, Nix doesn't allow derivation names
starting with a period.

So whenever the zone is "." now, the file name generated is "root"
instead of ".".

I also added an assertion that makes sure the user sets
services.nsd.rootServer, otherwise NSD will fail at runtime because it
prevents serving the root zone without an explicit compile-time option.

Tested this by adding a root zone to the "nsd" NixOS VM test.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @hrdinka, @qknight
2018-05-07 04:05:41 +02:00
..
2016-10-17 16:20:24 +02:00
2018-02-11 23:35:05 +01:00
2017-04-11 18:18:53 +02:00
2017-09-28 00:41:15 +02:00
2018-04-26 13:57:11 +03:00
2016-11-23 15:23:10 +01:00
2017-09-09 00:29:46 +02:00
2017-01-29 01:58:12 -06:00
2016-08-16 21:11:06 +00:00
2016-09-23 02:02:20 +10:00
2017-11-30 17:13:42 -08:00
2018-03-07 20:28:12 +02:00
2018-02-12 20:48:25 +01:00
2017-05-18 15:57:26 +02:00
2018-02-07 08:04:36 -05:00
2018-04-10 20:27:59 +02:00
2017-09-15 23:08:53 +02:00
2018-02-19 13:16:09 +00:00
2018-05-05 00:33:20 -05:00
2018-03-05 19:32:42 +00:00
2018-02-20 10:14:55 +00:00
2016-11-16 22:36:53 +09:00
2016-12-17 00:00:45 +01:00
2017-01-30 20:32:06 +01:00
2017-01-23 17:57:48 +01:00
2016-12-05 13:37:08 +01:00
2018-04-13 11:38:52 +02:00
2017-02-15 23:44:11 +00:00
2017-02-09 18:01:14 +01:00
2017-08-01 06:16:03 +02:00
2018-04-13 13:39:21 +03:00
2017-04-11 18:18:53 +02:00
2018-01-21 11:23:07 +00:00
2016-08-11 00:29:48 +09:00
2018-02-23 11:59:37 -05:00
2017-06-25 20:17:20 -03:00