I thought the subject had already been addressed but I cannot find the answer…
I am trying to customize the search domain provided by the DHCP server (dnsmasq). I am ok for the DHCP to provides hostnames in .lan but I wan’t the search domain to be internal.myowndomain.com.
I have tried to set the domain option to internal.myowndomain.com but it does not seems to change anything.
This changes the names served in DNS from foo.lan. to foo.your.custom.suffix.
When you mention “search domain”, that’s something a client does, e.g. the search command in /etc/resolv.conf (on Linux/glibc systems at least, not sure where else) – in some conditions it tries to append the suffix “locally”.
Indeed. But is this option not set accordingly to what is provided by the DHCP?
I have Unbound resolver configured on the Turris with stub-zone served by NSD. The NSD zone contains LAN hosts. This is why I am not talking about DNS but only DHCP.
OK. It is indeed working with the domain option (leaving local untouched). The error was on the client side, I was missing the UseDomains=true on systemd-networkd conf.