If you want to run avahi2dns as a system service and customize its configuration, you can do so by adding an override to its systemd service unit.
To do this run:
sudo systemctl edit avahi2dns.service
Edit the override file according to the given instructions in the opened file and override the "ExecStart=" line with the one containing your configuration. Note that in order to override "ExecStart" you have to clear it first by adding a line with "ExecStart=" without parameters just before the line where you place your customized command.
For example you could add this in the override file:
[Service]
ExecStart=
ExecStart=/usr/bin/avahi2dns --addr '127.0.0.1' --port 5354 --timeout 2.5s -d local -d home
Pinned Comments
aig commented on 2026-03-12 19:02 (UTC) (edited on 2026-03-12 19:05 (UTC) by aig)
If you want to run avahi2dns as a system service and customize its configuration, you can do so by adding an override to its systemd service unit.
To do this run:
Edit the override file according to the given instructions in the opened file and override the "ExecStart=" line with the one containing your configuration. Note that in order to override "ExecStart" you have to clear it first by adding a line with "ExecStart=" without parameters just before the line where you place your customized command.
For example you could add this in the override file: