ops/nixos/lib/common: add global DNS servers

This commit is contained in:
Luke Granger-Brown 2022-01-04 13:32:56 +00:00
parent 8cc6e2001a
commit de71fd5c9a

View file

@ -76,15 +76,15 @@ in
enable = true;
llmnr = "false"; # LLMNR breaks search domains.
domains = config.networking.search;
extraConfig = ''
# For global search domains to work, we also need global DNS servers.
DNS=8.8.8.8#dns.google [2001:4860:4860::8888]#dns.google 1.1.1.1#cloudflare-dns.com [2606:4700:4700::1111]#cloudflare-dns.com
'';
fallbackDns = [
"8.8.8.8"
"8.8.4.4"
"2001:4860:4860::8888"
"2001:4860:4860::8844"
"1.1.1.1"
"1.0.0.1"
"2606:4700:4700::1111"
"2606:4700:4700::1001"
];
};