aboutsummaryrefslogtreecommitdiffstats
path: root/tests/common/dns
diff options
context:
space:
mode:
authorSoispha Peetz <soispha@b-peetz.de>2026-11-26 23:33:49 +0100
committerSoispha Peetz <soispha@b-peetz.de>2026-11-27 00:55:53 +0100
commitcc96366fef801fa416db8ac77c8a9edc1240f16d (patch)
treedd6145c4a2bacc0bc1d92009d1ccf703db593ceb /tests/common/dns
parenthosts/server3: Temporarily disable rocie (diff)
downloadnixos-server-cc96366fef801fa416db8ac77c8a9edc1240f16d.zip
tests/snm-email-{single,dual}-server: Fix with the new unbound changes
Diffstat (limited to 'tests/common/dns')
-rw-r--r--tests/common/dns/client.nix5
-rw-r--r--tests/common/dns/server.nix4
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/common/dns/client.nix b/tests/common/dns/client.nix
index 2e057a9..384f1c9 100644
--- a/tests/common/dns/client.nix
+++ b/tests/common/dns/client.nix
@@ -8,4 +8,9 @@
# Instead of doing the dance with root dns servers and what-not, we just force them
# to directly connect to our authoritative dns server for the zones we have.
networking.nameservers = lib.mkForce nodes.name_server.vhack.nsd.interfaces;
+
+ # `unbound` might be active, but it's utterly pointless in a test environment (there is
+ # no network access). So we disable it, which means that the nameservers, configured
+ # above, actually mean something.
+ vhack.unbound.enable = lib.mkForce false;
}
diff --git a/tests/common/dns/server.nix b/tests/common/dns/server.nix
index 5f8d470..a3a603f 100644
--- a/tests/common/dns/server.nix
+++ b/tests/common/dns/server.nix
@@ -3,10 +3,6 @@
config,
...
}: {
- imports = [
- ../../../modules
- ];
-
vhack = {
# Enable unbound, so we can resolve our own zones.
unbound.enable = true;