We should provide an easy way to replace dnsmasq on openwrt:
https://openwrt.org/docs/guide-user/base-system/dhcp.dnsmasq
So we should provide an option to import the necessary configuration parameters including DHCP settings and DNS settings. Please note, that the DNS server from there will be used as a bootstrap, the real upstream will be configured in AdGuard Home settings exclusively.
Additionally, we should figure out how to keep DHCP integration in place. How does openwrt read the information about dynamic DHCP leases?
The absolute minimum is:
cat /etc/config/network
config interface 'lan'
option netmask '255.255.255.0'
option ipaddr '192.168.8.1'
cat /etc/config/dhcp
config dhcp 'lan'
option start '100'
option limit '150'
option leasetime '12h'
ignoring anything else.
And DNS server bootstrap address must be read from /etc/resolv.conf:
nameserver ...
nameserver ...
Don't forget about static leases
And dhcp-option. I currently have these in /etc/dnsmasq.conf:
dhcp-option=60,IPTV_RG
dhcp-option=28,192.168.1.255
I need these for my IPTV to function.
Reassigning to v0.103, a lot about our DHCP server should be improved first
Most helpful comment
And dhcp-option. I currently have these in /etc/dnsmasq.conf:
dhcp-option=60,IPTV_RGdhcp-option=28,192.168.1.255I need these for my IPTV to function.