From de71fd5c9a2e03b12749d58a66f51c3c6fe46e26 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Tue, 4 Jan 2022 13:32:56 +0000 Subject: [PATCH] ops/nixos/lib/common: add global DNS servers --- ops/nixos/lib/common.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ops/nixos/lib/common.nix b/ops/nixos/lib/common.nix index 03c551f1f7..8ed75176aa 100644 --- a/ops/nixos/lib/common.nix +++ b/ops/nixos/lib/common.nix @@ -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" ]; };