From dec573425f598bfb0813dd5d0327aee44c4bf7e0 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 24 Dec 2024 01:53:14 +0300 Subject: [PATCH] Home: Use local dns first. --- host/x86_64-linux/home/Network.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/host/x86_64-linux/home/Network.nix b/host/x86_64-linux/home/Network.nix index d53d9473..0ea5a2b9 100644 --- a/host/x86_64-linux/home/Network.nix +++ b/host/x86_64-linux/home/Network.nix @@ -31,6 +31,11 @@ in "10-${wan}" = { matchConfig.Name = wan; linkConfig.RequiredForOnline = "carrier"; + dns = [ + "::1" + "1.1.1.1" + "8.8.8.8" + ]; dhcpV4Config = { ClientIdentifier = "mac"; UseDNS = false; @@ -45,7 +50,6 @@ in }; networkConfig = { DHCP = "yes"; - DNS = "1.1.1.1"; IPv6AcceptRA = true; IPv6SendRA = false; DHCPPrefixDelegation = true;