ops/nixos/lib/common: add global DNS servers
This commit is contained in:
parent
8cc6e2001a
commit
de71fd5c9a
1 changed files with 4 additions and 4 deletions
|
@ -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"
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue