Admin message

Self sign-up has been disabled due to increased spam activity. If you want to get access, please send an email to a project owner (preferred) or at gitlab(at)nic(dot)cz. We apologize for the inconvenience.

'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 ```config 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 ```python 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: ```config option local '/home.arpa/' option domain 'home.arpa' ``` this will make nslookup *compname* works
issue