Unbound domainneeded


I have switched from dnsmasq to unbound with odhcpd.
Today, I thought it would be great if I could access my devices only with their hostnames.
I did some digging and found the following code that should exactly do what I want, but it sadly it is for dnsmasq.

option domainneeded '0'

Any tip/advice how can this be implemented in my setup?

1 Like

Add your domain to the list of search domains on the client device.
It should work automatically if you specify the domain in the DHCP configuration:

uci set dhcp.lan.domain="example.org"
uci commit dhcp
/etc/init.d/odhcpd restart

And reconnect the clients to apply changes.

See also: https://openwrt.org/docs/techref/odhcpd

1 Like

It works perfectly, Thanks! :slight_smile:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.