summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Magnusson <mathias@magnusson.space>2025-10-19 16:48:53 +0200
committerMathias Magnusson <mathias@magnusson.space>2025-10-19 16:48:53 +0200
commitabc4ab57e40f0fe7da21fffe73f4e975f6fba039 (patch)
treee204b7c58a1aed94ef320be5dfd5697025ab4001
parent1544ace9cf9a08df4429848a9afe2dd2cd451151 (diff)
downloadoden-abc4ab57e40f0fe7da21fffe73f4e975f6fba039.tar.gz
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
-rw-r--r--router.nix9
1 files changed, 7 insertions, 2 deletions
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" ];