On 19/09/2025 14.07, Esko Dijk wrote:
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.
It's a placeholder for the hostname of my computer. The real hostname is
different for each of my hosts.
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).
Yes, and I'd like to not publish that (and also not a different static
mDNS host name). Just nothing.
This usually needs to be present, otherwise services can't be
reached on that host.
I'm publishing a dynamic list of domains, see below.
The option 'host-name' will change this name and make it independent
from the computer's hostname.
Doesn't matter, I would like to switch it off rather than renaming.
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'.
This would also switch off publishing of my dynamic list.
I'm using avahi-daemon to publish a list of .local domains. That list is
dynamic and is changed with starting and stopping docker services. Atm
d-bus is used to add and remove domains to broadcast. Aside from that
dynamic list, no other domains shall be published.
I don't want to browse domains via avahi-daemon. The "consumer" of the
mDNS domains is on the client side, in most/all cases other machines or
even OSes.