From 3210289ebf9eb115355a963529ff062e40b488c2 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 28 Jan 2023 09:53:13 +0800 Subject: [PATCH] fix *.mil DNS lookups --- aux-etc-nixos/configuration.nix | 7 +++++++ nixbld-etc-nixos/configuration.nix | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/aux-etc-nixos/configuration.nix b/aux-etc-nixos/configuration.nix index 1b61f6dc..e86d0086 100644 --- a/aux-etc-nixos/configuration.nix +++ b/aux-etc-nixos/configuration.nix @@ -87,6 +87,13 @@ in listenOnIpv6 = []; forwarders = []; extraOptions = "listen-on-v6 port 5354 { ::1; };"; + extraConfig = '' + zone "mil." IN { + type forward; + forward only; + forwarders { 74.82.42.42; }; + }; + ''; cacheNetworks = [ "::1/128" ]; }; services.dnsmasq = { diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index a1f330c5..0a027227 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -199,6 +199,13 @@ in ]; }; }; + extraConfig = '' + zone "mil." IN { + type forward; + forward only; + forwarders { 74.82.42.42; }; + }; + ''; }; services.hostapd = {