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-08 22:50:26 +01:00
2018-05-01 10:36:36 +01:00
2018-02-17 14:57:07 +01:00
2018-03-30 17:33:45 -04:00
2018-03-21 00:58:41 +01:00
2017-12-31 07:07:02 +00:00
2018-02-17 14:57:07 +01:00
2018-02-22 04:04:49 +01:00
2018-02-27 19:58:23 +01:00
2018-03-19 13:12:47 +01:00
2018-03-01 11:47:13 +00:00
2018-04-28 17:35:13 +02:00
2018-02-17 14:57:07 +01:00
2018-01-30 16:57:27 +02:00
2018-02-17 14:57:07 +01:00
2018-02-17 14:57:07 +01:00
2018-02-17 14:57:07 +01:00
2018-04-20 12:25:04 +02:00
2018-02-17 14:57:07 +01:00
2018-03-31 19:01:10 +01:00
2018-02-17 14:57:07 +01:00
2018-02-17 14:57:07 +01:00
2018-03-12 22:28:27 +01:00
2018-04-13 10:30:22 +02:00
2018-01-08 15:09:33 +01:00
2018-05-01 15:23:47 +02:00
2018-04-14 14:11:14 +02:00
2018-04-14 14:11:14 +02:00
2018-04-12 01:35:14 +02:00
2018-01-30 16:57:27 +02:00
2018-01-02 01:15:29 +01:00
2018-02-17 14:57:07 +01:00
2018-02-15 01:11:13 +01:00
2018-02-14 22:43:59 +01:00
2018-04-21 12:09:30 +02:00
2018-03-12 23:37:29 +01:00
2018-04-29 23:46:47 +02:00
2018-04-23 16:53:13 +08:00
2018-04-07 15:06:51 +02:00
2018-03-24 16:11:31 +02:00
2018-02-19 11:31:20 +01:00
2018-04-28 20:20:47 +00:00
2018-04-25 10:16:52 +02:00
2018-02-02 17:44:08 +01:00
2018-02-04 21:22:55 -04:00
2018-03-25 18:29:21 +03:00
2018-02-17 14:57:07 +01:00
2018-01-02 17:57:19 -05:00
2018-02-19 14:12:58 +00:00
2018-02-28 16:55:00 -05:00
2018-02-20 11:03:49 -06:00
2018-05-07 04:05:41 +02:00
2018-04-04 18:26:41 +03:00
2018-02-28 16:55:00 -05:00
2018-04-30 16:49:38 +02:00
2018-02-14 22:25:12 +01:00
2018-02-20 22:17:16 +01:00
2018-02-17 16:43:41 +00:00
2018-04-29 15:36:56 +02:00
2018-02-23 18:51:39 +03:00
2018-03-21 15:33:58 +01:00
2018-02-17 14:57:07 +01:00
2018-02-09 06:19:03 +01:00
2018-02-10 07:52:03 +00:00
2018-02-28 16:55:00 -05:00
2018-01-26 23:29:53 +02:00
2018-02-28 11:44:00 +01:00
2018-01-17 14:56:08 +00:00
2018-04-16 00:43:33 +02:00
2018-04-05 22:07:49 +02:00
2018-04-30 03:02:57 +02:00
2018-03-18 19:15:56 +00:00
2018-03-13 22:00:56 +01:00
2018-03-13 21:04:44 +01:00
2018-01-04 09:58:21 +01:00