From d2a261f41a7a6e95097529e7dc6f6dee253172b2 Mon Sep 17 00:00:00 2001 From: Bailey Stevens Date: Fri, 29 Sep 2023 23:44:55 -0400 Subject: [PATCH] Fixes dns. --- configuration.nix | 2 -- platforms/melodypond.nix | 10 ++++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 08cb62a..d89a497 100644 --- a/configuration.nix +++ b/configuration.nix @@ -22,8 +22,6 @@ windowManager.fluxbox.enable = true; }; - networking.firewall.allowedUDPPorts = [ 67 ]; - environment.systemPackages = with pkgs; [ git btop tmux ]; diff --git a/platforms/melodypond.nix b/platforms/melodypond.nix index 6dd102a..99f433f 100644 --- a/platforms/melodypond.nix +++ b/platforms/melodypond.nix @@ -45,9 +45,19 @@ services.dnsmasq = { enable = true; + resolveLocalQueries = false; settings = { + bind-interfaces = true; + expand-hosts = true; + no-hosts = true; + local = "/lan/"; + domain = "lan"; interface = [ "wlan0" ]; dhcp-range = [ "192.168.24.100,192.168.24.200" ]; + dhcp-option= "6,0.0.0.0"; + host-record = "melodypond,melodypond.lan,192.168.24.1"; }; }; + + networking.firewall.allowedUDPPorts = [ 53 67 ]; }