# /usr/lib/systemd/system/avahi-dnsconfd.service
# This file is part of avahi.
#
# avahi is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# avahi is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with avahi; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
[Unit]
Description=Avahi DNS Configuration Daemon
Requires=avahi-daemon.socket avahi-daemon.service
After=avahi-daemon.socket
[Service]
Type=simple
ExecStart=/usr/bin/avahi-dnsconfd -s
[Install]
WantedBy=multi-user.target
I see no difference. I don’t see the point of your support request…
It is just a thought - if it is a domino issue - so to speak… and I cannot say if it is related - as that would require more digging into your exact issue - please see Avahi zeroconf browser zeigt nichts an.
The issue and a temporary workaround has also been provided in the Announcements threads in the known issues comment.
[Unit]
Description=Avahi DNS Configuration Daemon
Requires=avahi-daemon.socket avahi-daemon.service
After=avahi-daemon.socket
Correct:
[Unit]
Description=Avahi DNS Configuration Daemon
Requires=avahi-daemon.socket avahi-daemon.service
After=avahi-daemon.service
Look at “After”
avahi-dnsconfd.service must start AFTER avahi-daemon.service.
Later starts avahi-daemon.socket. And thens start avahi-dnsconfd.service
Question: o.K or not.
EDIT:
to use systemd-resolved.service too,
/etc/systemd/resolved.conf should contain
MulticastDNS=no
LLMNR=no
better - use : /etc/systemd/resolved.conf.d/custom.conf
I won’t say I have the stone of wise - my understanding appears to be opposite of yours.
The avahi-dnsconfd.service relies on the avahi-daemon.service which can be either running (the service unit is active) or activated on demand using the socket.
So far OK
Wrong order - you can disable the avahi-daemon.service - accessing the avahi-daemon.socket will activate the service
The avahi-dnsconfd will poke the socket to get the service - if it is not running - it will be started.
Either way the result is a running avahi-damon.service which is required for the dnsconfd.service to be functional.
You are absolutely correct; source → https://unix.stackexchange.com/questions/255353/multicasting-multiple-mdns-names
I asked “Perplexity”…
How can I delay avahi-dnsconfd startup until the avahi-daemon is fully ready
Answer:
Edit or override the avahi-dnsconfd.service file (usually found in /etc/systemd/system/ or /lib/systemd/system/).
Add the following directives to ensure it waits for avahi-daemon:
This ensures avahi-dnsconfd will not start until avahi-daemon is started.
(and prevents the message “Killing child”)
I lost the original site…
EDIT:
Avahi (avahi-daemon.service / avahi-daemon.socket / avahi-dnsconfd.service)
is working without complaining in journal,
systemd-resolved.service too. (using all changes made).