From b6c186b632f9e10ad6c93f10c64a2890db36bf8c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 13 Jun 2020 13:58:26 +0800 Subject: [PATCH] nixbld: use own DNS resolver --- nixbld-etc-nixos/configuration.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 816789a..68a9aac 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -100,6 +100,15 @@ in boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = "1"; boot.kernel.sysctl."net.ipv6.conf.default.forwarding" = "1"; + services.unbound = { + enable = true; + extraConfig = + '' + server: + port: 5353 + ''; + }; + services.hostapd = { enable = true; interface = netifWifi; @@ -118,6 +127,7 @@ in }; services.dnsmasq = { enable = true; + servers = ["::1#5353"]; extraConfig = '' interface=${netifLan} interface=${netifWifi} @@ -128,6 +138,8 @@ in dhcp-range=interface:${netifLan},::,constructor:${netifLan},ra-names dhcp-range=interface:${netifWifi},::,constructor:${netifWifi},ra-only + no-resolv + # Static IPv4s to make Red Pitayas less annoying dhcp-host=rp-f05cc9,192.168.1.190 dhcp-host=rp-f0612e,192.168.1.191