'Option domain' not changed by "Domain of DHCP clients in DNS" setting
Visiting page /foris/config/main/dns/
(foris) or /reforis/network-settings/dns
(reforis)
then changing value in "Domain of DHCP clients in DNS" to: home.arpa
Option 'Enable DHCP clients in DNS' is enabled.
it will change only option local
and not option domain
in file: /etc/config/dhcp
option local '/home.arpa/'
option domain 'lan'
as can be seen in code at: https://gitlab.labs.nic.cz/turris/foris-controller/foris-controller/-/blob/aa868245cdeba85fcad675be7f73646888c7592f/foris_controller_backends/dns/init.py#L272-275
if dns_from_dhcp_domain:
backend.set_option(
"dhcp", "@dnsmasq[0]", "local", "/%s/" % dns_from_dhcp_domain.strip("/")
)
The file /etc/resolv.conf will use the value of option domain
for search
like:
search lan
thus nslookup will fail (NXDOMAIN) for compname, but will work for compname.home.arpa
fix:
change value option domain
as well to use value from "Domain of DHCP clients in DNS" (but not enclosed in / chars as used in local option), so will result in following change:
option local '/home.arpa/'
option domain 'home.arpa'
this will make nslookup compname works