Based on your example:
> Currently e.g. if my host is named "myhost" it publishes a dom1ain
"myhost.local".
Is "myhost" here the hostname of your computer (output of 'hostname'
command)? I assumed so.
The name "myhost.local" that gets published by default is the mDNS host
name (term as defined in RFC 6762 to be different from computer's
hostname). This usually needs to be present, otherwise services can't be
reached on that host.
The option 'host-name' will change this name and make it independent
from the computer's hostname.
If you really don't want that domain "myhost.local" published, and also
not "my-custom-name.local", then it can be disabled with
'publish-addresses=no'. But then also no addresses of the host will be
published.
If addresses need to be published, then exposing some host name is
inevitable.
Or maybe your question was on the mDNS browsing domains instead?
(Related to the config option 'browse-domains'.) If so I can take a
deeper look, haven't used that function much.
regards,
Esko
On 19-9-2025 12:49, Andreas wrote:
Hi Esko, thanks for your reply.
1. How can I prevent avahi-daemon from publishing a domain based on
my hostname? Currently e.g. if my host is named "myhost" it
publishes a dom1ain "myhost.local". I tried `publish-domain=no` but
it doesn't seem to have any effect.
>
For 1.: for this the option "host-name=my-custom-name" can be used.
The domain name shouldn't be changed typically, I think, as mDNS
requires the "local" domain. Then the full advertised hostname for
host address records becomes "my-custom-name.local".
https://manpages.debian.org/trixie/avahi-daemon/avahi-daemon.conf.5.en.html
I want to prevent avahi-daemon from auto-publishing from publishing a
domain based on my host name entirely.
Your proposal changes it to a different host name.
--
*IoTconsultancy.nl* | Email/Teams: [email protected] | +31 6
2385 8339