DNS Suffix / Search domain fritz.box

Hi,

my DNS suffix for my local subnet is fritz.box.

So Home Assistant has the domain haos.fritz.box for example.

If i want to access local devices i have to use the full domain instead of just the hostname. I think this is because Home Assistant or Docker uses another search domain.

Is it possible to add another search domain without breaking anything else?

Thank you very much.

Home Assistant doesn’t add and search domain. You can add one through the HOST ssh (port 22222) with nmcli.

nmcli con show

Find your interface name. It should be “Supervisor something”

Then

nmcli mod con “Supervisor what-you-looked-up” ipv4.dns-search “yourlocaldomain”

systemctl restart NetworkManager

Ping a local host by name to verify working.