Closed jcassette closed 1 year ago
The question is do you want DNS when the device is not connected? DNS is pulled from the DHCP lease file.
That's the behavior of dnsmasq
when the dns
option is set
config_get_bool dns "$cfg" dns 0
[ "$dns" = "1" ] && [ -n "$ip" ] && [ -n "$name" ] && {
echo "$ip $name${DOMAIN:+.$DOMAIN}" >> $HOSTFILE_TMP
}
Maintainer: @EricLuehrsen Environment: OpenWrt 23.05.0 r23497-6637af95aa / LuCI openwrt-23.05 branch git-23.236.53405-fc638c8
Description:
When Unbound "Extra DNS" UCI option is set to "Host Records" or "Host/MX/SRV RR" or "Host/MX/SRV/CNAME RR", the hostnames of static leases are not used as extra DNS entries.
This is not in accordance with the description of the DHCP Hostname option:
Reproduction steps:
Actual behavior:
Expected behavior: