From abc4ab57e40f0fe7da21fffe73f4e975f6fba039 Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Sun, 19 Oct 2025 16:48:53 +0200 Subject: Allow for some static ip leases I wish I didn't have to do this, but I guess I do. Getting wildcard subdomains to work for DNS requests seems to only be possible with the `--address=` option in dnsmasq, but for that you need to specify which IP address it should point to. At least I got around having to specify the MAC address for the static leases --- router.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'router.nix') diff --git a/router.nix b/router.nix index 55ae603..338bc83 100644 --- a/router.nix +++ b/router.nix @@ -68,12 +68,17 @@ in server = [ "1.1.1.1" "1.0.0.1" ]; interface = "br0"; - dhcp-range = "10.69.0.2,10.69.0.254,255.255.0.0,1h"; + dhcp-range = "10.69.0.50,10.69.0.254,255.255.0.0,1h"; dhcp-option = [ "option:router,10.69.0.1" "option:dns-server,10.69.0.1" ]; dhcp-authoritative = true; no-hosts = true; - address = "/oden.m/10.69.0.1"; + + dhcp-host = "mimer,10.69.0.3"; + address = [ + "/oden.m/10.69.0.1" + "/mimer.m/10.69.0.3" + ]; }; }; networking.nameservers = [ "127.0.0.1" ]; -- cgit v1.2.3