fix: ensure that servers are using our dns (if resolved is enabled)
This commit is contained in:
parent
883a6b239c
commit
8443218d0b
1 changed files with 10 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, modulesPath, ... }:
|
{ pkgs, modulesPath, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
# ns1
|
# ns1
|
||||||
"193.1.99.120"
|
"193.1.99.120"
|
||||||
# ns2
|
# ns2
|
||||||
#"193.1.99.109"
|
"193.1.99.109"
|
||||||
|
|
||||||
# Cloudflare
|
# Cloudflare
|
||||||
#"1.1.1.1"
|
#"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 = [
|
environment.systemPackages = [
|
||||||
# for flakes
|
# for flakes
|
||||||
|
@ -70,5 +77,6 @@
|
||||||
pkgs.nmap
|
pkgs.nmap
|
||||||
pkgs.bind
|
pkgs.bind
|
||||||
pkgs.zip
|
pkgs.zip
|
||||||
|
pkgs.traceroute
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue