upstream dns

pull/1/head
Jordan Sokolic 2020-02-18 09:54:40 +02:00
parent c12221dd99
commit 300988b90a
2 changed files with 31 additions and 0 deletions

1
.env
View File

@ -7,6 +7,7 @@ CONTAINER=openwrt_1
WAN_NAME=openwrt-wan
WAN_PARENT=enp0s20f0u4
WAN_SUBNET=192.168.12.0/24
UPSTREAM_DNS_SERVER=192.168.12.2
LAN_NAME=openwrt-lan
LAN_SUBNET=192.168.16.0/24

View File

@ -0,0 +1,30 @@
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option localservice '1'
option rebind_protection '0'
list server "${UPSTREAM_DNS_SERVER}"
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv6 'server'
option ra 'server'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'