mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 15:29:07 +01:00
Resolve dns queries on overlay with the recursive ns
This commit is contained in:
parent
dcf23fabe6
commit
3f5ea6e161
4 changed files with 9 additions and 4 deletions
|
|
@ -21,6 +21,7 @@
|
|||
};
|
||||
|
||||
services = {
|
||||
recursive-nameserver.enable = true;
|
||||
private-nameserver.enable = true;
|
||||
|
||||
syncthing = {
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
};
|
||||
|
||||
services = {
|
||||
recursive-nameserver.enable = true;
|
||||
private-nameserver.enable = true;
|
||||
public-nameserver = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -63,10 +63,10 @@ in
|
|||
default =
|
||||
allHosts
|
||||
|> lib.attrValues
|
||||
|> lib.filter (host: host.config.custom.services.private-nameserver.enable)
|
||||
|> lib.filter (host: host.config.custom.services.recursive-nameserver.enable)
|
||||
|> lib.map (
|
||||
host:
|
||||
"${host.config.custom.networking.overlay.address}:${toString host.config.custom.services.private-nameserver.port}"
|
||||
"${host.config.custom.networking.overlay.address}:${toString host.config.custom.services.recursive-nameserver.port}"
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.private-nameserver.enable = true;
|
||||
services = {
|
||||
recursive-nameserver.enable = true;
|
||||
private-nameserver.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -133,7 +136,7 @@
|
|||
client1.wait_for_unit("${client1NetCfg.overlay.systemdUnit}")
|
||||
client2.wait_for_unit("${client2NetCfg.overlay.systemdUnit}")
|
||||
|
||||
lighthouse.wait_for_unit("nsd.service")
|
||||
lighthouse.wait_for_unit("unbound.service")
|
||||
lighthouse.wait_for_open_port(53, "${lighthouseNetCfg.overlay.address}")
|
||||
|
||||
server.wait_for_unit("sshd.service")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue