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
..
2018-03-30 17:33:45 -04:00
2017-12-31 07:07:02 +00:00
2018-03-19 13:12:47 +01:00
2018-03-01 11:47:13 +00:00
2018-04-13 10:30:22 +02:00
2018-04-12 01:35:14 +02:00
2018-02-15 01:11:13 +01:00
2018-02-14 22:43:59 +01:00
2018-03-12 23:37:29 +01:00
2018-04-07 15:06:51 +02:00
2018-03-25 18:29:21 +03:00
2018-02-20 11:03:49 -06:00
2018-04-04 18:26:41 +03:00
2018-04-30 16:49:38 +02:00
2018-02-17 16:43:41 +00:00
2018-02-23 18:51:39 +03:00
2018-03-21 15:33:58 +01:00
2018-03-18 19:15:56 +00:00
2018-01-04 09:58:21 +01:00