From 36195c365c9f69635b81b7c8dbbd28bb8bee34be Mon Sep 17 00:00:00 2001 From: Jordan Sokolic Date: Thu, 20 Feb 2020 08:27:33 +0200 Subject: [PATCH] add parameter for LAN domain --- etc/config/dhcp.tpl | 4 ++-- openwrt.conf.example | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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