aboutsummaryrefslogtreecommitdiffstats
path: root/tests/common/dns/server.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common/dns/server.nix')
-rw-r--r--tests/common/dns/server.nix22
1 files changed, 8 insertions, 14 deletions
diff --git a/tests/common/dns/server.nix b/tests/common/dns/server.nix
index 0c8d72c..a3a603f 100644
--- a/tests/common/dns/server.nix
+++ b/tests/common/dns/server.nix
@@ -1,28 +1,22 @@
{
- lib,
nodes,
+ config,
...
}: {
- imports = [
- ../../../modules
- ];
-
- networking.nameservers = lib.mkForce [
- nodes.name_server.networking.primaryIPAddress
- nodes.name_server.networking.primaryIPv6Address
- ];
-
vhack = {
- dns = {
+ # Enable unbound, so we can resolve our own zones.
+ unbound.enable = true;
+
+ nsd = {
enable = true;
openFirewall = true;
interfaces = [
- nodes.name_server.networking.primaryIPAddress
- nodes.name_server.networking.primaryIPv6Address
+ config.networking.primaryIPAddress
+ config.networking.primaryIPv6Address
];
zones = {
- "acme.test" = {
+ "acme.nixos_test" = {
SOA = {
nameServer = "ns";
adminEmail = "admin@server.com";