Hi everyone,
Trying to do something basic but due to my limited knowledge can't get it to work. I've created two DHCP servers so that are forced to use different upstream servers - one for LAN and one for GUEST/IOT interfaces. Most things seem to be working but for some reason I can't get them to share the list of static leases. Any lease hostname that gets given by one DHCP is only resolvable by that DHCP and not known by the other. I understand they should be shared?
What have I configured wrong? Here's the config:
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/home/'
option domain 'home'
option expandhosts '1'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases.0'
option localservice '1'
option ednspacket_max '1232'
option confdir '/tmp/dnsmasq.d'
list server '103.86.96.100'
list server '103.86.99.100'
option noresolv '1'
list notinterface 'guest'
list notinterface 'iot'
config dnsmasq 'CFG01411D'
option domainneeded '1'
option authoritative '1'
option local '/home/'
option domain 'home'
option expandhosts '1'
list server '1.1.1.1'
option rebind_protection '1'
option rebind_localhost '1'
option localservice '1'
list interface 'guest'
list interface 'iot'
list notinterface 'loopback'
option readethers '1'
option leasefile '/tmp/dhcp.leases.1'
option noresolv '1'
option localise_queries '1'
option ednspacket_max '1232'
option cachesize '1000'
config dhcp 'lan'
option interface 'lan'
option start '612'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option dhcpv6 'server'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config dhcp 'iot'
option interface 'iot'
option start '612'
option limit '150'
option leasetime '12h'
option ra 'server'
option dhcpv6 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
config dhcp 'guest'
option interface 'guest'
option start '612'
option limit '150'
option leasetime '12h'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option dhcpv6 'server'
config host
option name 'server'
list mac 'XXX'
option ip '10.1.1.10'
Thanks in advance