diff --git a/etc/config/dhcp.tpl b/etc/config/dhcp.tpl index 659f4d2..847fce2 100644 --- a/etc/config/dhcp.tpl +++ b/etc/config/dhcp.tpl @@ -1,8 +1,8 @@ config dnsmasq option domainneeded '1' option localise_queries '1' - option local '/home/' - option domain 'home' + option local "/${LAN_DOMAIN}/" + option domain "${LAN_DOMAIN}" option expandhosts '1' option authoritative '1' option readethers '1' diff --git a/openwrt.conf.example b/openwrt.conf.example index adc9547..608c018 100644 --- a/openwrt.conf.example +++ b/openwrt.conf.example @@ -11,7 +11,9 @@ WAN_PARENT=enp0s20f0u4 WAN_SUBNET=192.168.12.0/24 UPSTREAM_DNS_SERVER=192.168.12.2 +# lan LAN_NAME=openwrt-lan +LAN_DOMAIN=home LAN_SUBNET=192.168.16.0/24 LAN_ADDR=192.168.16.2 LAN_HOST=192.168.16.1