I’ve a couple routers running OpenWrt is it is all fine but I never quite understood the local domain resolution implementation. My main router is running SmartDNS as main DNS server and set to read dnsmasq entries.
2. Shouldn't we have have overlapping entries to cover the mDNS space? Doing mDNS via the standard mans is slow (usually a few seconds to get an IP), why can't the router's DNS server also answer with IPs it knows for .local to speed things up?
Sure, but that means dnsmasq will take over as the main DNS resolver and will run requests to SmartDNS for all domains it doesn't know. Although it is a valid approach and will work it also means way slower DNS resolution.
It doesn't seem correct that OpenWrt offers even a GUI option to make SmartDNS the first and only resolver with another option to make it read dnsmasq entries but then the lan domain isn't taken into consideration. :S
Smartdns in the current stable release is quite old. I tried installing the latest smartdns release from github but it didn't go well. So now I'm back to dnsmask and I'm not sure I notice any difference
@gechu@pavelgl that does work, but the SmartDNS implementation is wrong nevertheless. Since it has the option to read the lease file it should also do it properly.
EDIT: I ran into issues initially became Windows automatically suffixed unqualified domains (eg nodered) with “.lan” which dnsmask could handle but not directly by smartdns.
there is an issue https://github.com/pymumu/smartdns/issues/1973 might describe a resolution for you. but why not use dnsmasq as upstream dns for .lan instead of parsing dhcp.leases (which seems to not working)?
BUT this will not currently work in most Openwrt setups because the SmartDNS version used is old. Once those options are available in conjunction with the existing dnsmasq-lease-file one it should all work out without having to set dnsmasq as upstream.
Did you considered building it on your own?
You can even try to just bump the version of that DNS Server on the OpenWrt 24.10 branch.
But yes the long term maintenance might not get easier through that.
You can check the version of the packages without flashing OpenWrt. The wiki links to the package info site and on github OpenWrt packages you will find the makefiles
Yes I can, but since I was running 23.x it was just better to move to snapshot. Eventually I had to go back to 24.x because IPv6 on the WAN seems to be broken on the snapshot but either way the version on the snapshot isn't new enough yet to support those options properly.
Meanwhile in Openwrt 24.10.4 smartdns is 1.2023.43. mdns-lookup was only added in 45 and local-domain I've not no ideia but it doesn't work.