fix(networking): explicitly define DNS settings
This commit is contained in:
parent
c7da7a5a80
commit
fb4b537eea
1 changed files with 25 additions and 2 deletions
|
@ -3,10 +3,30 @@
|
||||||
networking = {
|
networking = {
|
||||||
useDHCP = true;
|
useDHCP = true;
|
||||||
firewall = {
|
firewall = {
|
||||||
checkReversePath = "loose";
|
|
||||||
trustedInterfaces = [ "tailscale0" ];
|
trustedInterfaces = [ "tailscale0" ];
|
||||||
allowedUDPPorts = [ config.services.tailscale.port ];
|
allowedUDPPorts = [ config.services.tailscale.port ];
|
||||||
};
|
};
|
||||||
|
search = [
|
||||||
|
# Tailscale
|
||||||
|
"tail4c593.ts.net"
|
||||||
|
"infinidoge.github.beta.tailscale.net"
|
||||||
|
];
|
||||||
|
nameservers = [
|
||||||
|
# Tailscale
|
||||||
|
"100.100.100.100"
|
||||||
|
|
||||||
|
# Google Public DNS
|
||||||
|
"8.8.8.8"
|
||||||
|
"8.8.4.4"
|
||||||
|
"2001:4860:4860::8888"
|
||||||
|
"2001:4860:4860::8844"
|
||||||
|
|
||||||
|
# Cloudflare Public DNS
|
||||||
|
"1.1.1.1"
|
||||||
|
"1.0.0.1"
|
||||||
|
"2696:4700:4700::1111"
|
||||||
|
"2696:4700:4700::1111"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
@ -22,6 +42,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
tailscale.enable = true;
|
tailscale = {
|
||||||
|
enable = true;
|
||||||
|
useRoutingFeatures = if config.info.stationary then "both" else "client";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue