After updgrading to the latest version of dnsmaq I found that DHCP server doesn't work if you don't set explicitly in dnsmaq.conf dhcp-range and list interface in config/dhcp section.
Previously were was no need to add list interface and usage of dnsmasq.conf was completely optional.
I suppose this might be considered as a bug.
Expected behavior:
- use of dnsmasq.conf should be completely optional for basic configuration
- Probably use of list interface should be also optional as soon as I configured DHCP for individual interface section.
My configs:
/etc/confg/dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option authoritative '1'
list interface 'br-lan' # doesn't work without this line
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option nonwildcard '0'
option localservice '0'
option boguspriv '0'
config dhcp 'lan'
option interface 'lan' # I'm already have this section why I need list interface in the section above?
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv6 'server'
option ra 'server'
option ra_management '1'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option maindhcp '1'
config host
option name 'ubi1'
option dns '1'
option mac '80:2a:a8:XX:XX:XX'
option ip '192.168.1.11'
option leasetime '3d'
/etc/dnsmasq.conf
interface=eth0 # not sure if really needed
dhcp-range=192.168.1.100,192.168.1.250,12h # doesn't work without it
My router NetGear WNDR3700v2.
FW: LEDE Reboot 17.01.4 r3560-79f57e422d / LuCI lede-17.01 branch (git-18.098.72829-575e327)
dnsmasq - 2.78-6