forked from DGNum/infrastructure
feat(dgn-network): Use only the specified DNS
This commit is contained in:
parent
c991c47b75
commit
5832da0941
1 changed files with 11 additions and 10 deletions
|
@ -32,16 +32,17 @@ let
|
|||
routes = builtins.map mkRoute net.gateways;
|
||||
|
||||
# Add default DNS servers
|
||||
dns = [
|
||||
"1.1.1.1#cloudflare-dns.com"
|
||||
"8.8.8.8#dns.google"
|
||||
"1.0.0.1#cloudflare-dns.com"
|
||||
"8.8.4.4#dns.google"
|
||||
"2606:4700:4700::1111#cloudflare-dns.com"
|
||||
"2001:4860:4860::8888#dns.google"
|
||||
"2606:4700:4700::1001#cloudflare-dns.com"
|
||||
"2001:4860:4860::8844#dns.google"
|
||||
] ++ (net'.dns or [ ]);
|
||||
dns =
|
||||
net'.dns or [
|
||||
"1.1.1.1#cloudflare-dns.com"
|
||||
"8.8.8.8#dns.google"
|
||||
"1.0.0.1#cloudflare-dns.com"
|
||||
"8.8.4.4#dns.google"
|
||||
"2606:4700:4700::1111#cloudflare-dns.com"
|
||||
"2001:4860:4860::8888#dns.google"
|
||||
"2606:4700:4700::1001#cloudflare-dns.com"
|
||||
"2001:4860:4860::8844#dns.google"
|
||||
];
|
||||
|
||||
networkConfig = optionalAttrs (net ? DHCP) { inherit (net) DHCP; };
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue