add parameter for LAN domain

pull/1/head
Jordan Sokolic 2020-02-20 08:27:33 +02:00
parent 8a1ff9118a
commit 36195c365c
2 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,8 @@
config dnsmasq config dnsmasq
option domainneeded '1' option domainneeded '1'
option localise_queries '1' option localise_queries '1'
option local '/home/' option local "/${LAN_DOMAIN}/"
option domain 'home' option domain "${LAN_DOMAIN}"
option expandhosts '1' option expandhosts '1'
option authoritative '1' option authoritative '1'
option readethers '1' option readethers '1'

View File

@ -11,7 +11,9 @@ WAN_PARENT=enp0s20f0u4
WAN_SUBNET=192.168.12.0/24 WAN_SUBNET=192.168.12.0/24
UPSTREAM_DNS_SERVER=192.168.12.2 UPSTREAM_DNS_SERVER=192.168.12.2
# lan
LAN_NAME=openwrt-lan LAN_NAME=openwrt-lan
LAN_DOMAIN=home
LAN_SUBNET=192.168.16.0/24 LAN_SUBNET=192.168.16.0/24
LAN_ADDR=192.168.16.2 LAN_ADDR=192.168.16.2
LAN_HOST=192.168.16.1 LAN_HOST=192.168.16.1