fix: ensure that servers are using our dns (if resolved is enabled)

This commit is contained in:
silver 2023-06-14 20:30:33 +01:00
parent 883a6b239c
commit 8443218d0b

View file

@ -1,4 +1,4 @@
{ pkgs, modulesPath, ... }:
{ pkgs, modulesPath, config, ... }:
{
imports = [
@ -48,7 +48,7 @@
# ns1
"193.1.99.120"
# ns2
#"193.1.99.109"
"193.1.99.109"
# Cloudflare
#"1.1.1.1"
@ -59,6 +59,13 @@
];
};
# make sure resolved uses our dns servers
services.resolved = {
#enable = true;
# use teh above nameservers as the fallback dns
fallbackDns = config.networking.nameservers;
};
environment.systemPackages = [
# for flakes
@ -70,5 +77,6 @@
pkgs.nmap
pkgs.bind
pkgs.zip
pkgs.traceroute
];
}