nixbld: update dnsmasq settings

This commit is contained in:
Sebastien Bourdeauducq 2023-06-04 22:40:14 +08:00
parent 6b35c751d8
commit 2227e816bc
1 changed files with 41 additions and 41 deletions

View File

@ -238,51 +238,51 @@ in
}; };
services.dnsmasq = { services.dnsmasq = {
enable = true; enable = true;
servers = ["::1#5354"]; settings = {
extraConfig = '' server = ["::1#5354"];
interface=${netifLan} interface = [ netifLan netifWifi ];
interface=${netifWifi} bind-interfaces = true;
bind-interfaces dhcp-range = [
dhcp-range=interface:${netifLan},192.168.1.81,192.168.1.254,24h "interface:${netifLan},192.168.1.81,192.168.1.254,24h"
dhcp-range=interface:${netifWifi},192.168.12.10,192.168.12.254,24h "interface:${netifWifi},192.168.12.10,192.168.12.254,24h"
enable-ra "interface:${netifLan},::,constructor:${netifLan},ra-names"
dhcp-range=interface:${netifLan},::,constructor:${netifLan},ra-names "interface:${netifWifi},::,constructor:${netifWifi},ra-only"
dhcp-range=interface:${netifWifi},::,constructor:${netifWifi},ra-only ];
enable-ra = true;
no-resolv no-resolv = true;
dhcp-host = [
# Static IPv4s to make Red Pitayas with factory firmware less annoying # Static IPv4s to make Red Pitayas with factory firmware less annoying
dhcp-host=rp-f05cc9,192.168.1.190 "rp-f05cc9,192.168.1.190"
dhcp-host=rp-f0612e,192.168.1.191 "rp-f0612e,192.168.1.191"
# Static IPv4s to make port redirections work # Static IPv4s to make port redirections work
dhcp-host=rpi-1,192.168.1.201 "rpi-1,192.168.1.201"
dhcp-host=rpi-2,192.168.1.202 "rpi-2,192.168.1.202"
dhcp-host=rpi-3,192.168.1.203 "rpi-3,192.168.1.203"
dhcp-host=rpi-4,192.168.1.204 "rpi-4,192.168.1.204"
];
address = [
# Static IP addresses for non-DHCP boards # Static IP addresses for non-DHCP boards
address=/thermostat/192.168.1.26 "/thermostat/192.168.1.26"
address=/powercycler/192.168.1.31 "/powercycler/192.168.1.31"
address=/kc705/192.168.1.50 "/kc705/192.168.1.50"
address=/zynq-experiments/192.168.1.51 "/zynq-experiments/192.168.1.51"
address=/zc706/192.168.1.52 "/zc706/192.168.1.52"
address=/zc706-2/192.168.1.53 "/zc706-2/192.168.1.53"
address=/cora-z7/192.168.1.54 "/cora-z7/192.168.1.54"
address=/rust-pitaya/192.168.1.55 "/rust-pitaya/192.168.1.55"
address=/sayma/192.168.1.60 "/kasli/192.168.1.70"
address=/metlino/192.168.1.65 "/kasli-customer/192.168.1.75"
address=/kasli/192.168.1.70 "/stabilizer-customer/192.168.1.76"
address=/kasli-customer/192.168.1.75
address=/stabilizer-customer/192.168.1.76
# uTCA MCH from NAT
address=/tschernobyl/192.168.1.80
# Google can't do DNS geolocation correctly and slows down websites of everyone using # Google can't do DNS geolocation correctly and slows down websites of everyone using
# their shitty font cloud hosting. In HK, you sometimes get IPs behind the GFW that you # their shitty font cloud hosting. In HK, you sometimes get IPs behind the GFW that you
# cannot reach. # cannot reach.
address=/fonts.googleapis.com/142.250.207.74 "/fonts.googleapis.com/142.250.207.74"
''; ];
};
}; };
# Select internationalisation properties. # Select internationalisation properties.