You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
[feature request] Please add support of systemd built-in bonjour service (nss_resolve). #5452
Based on the available documentation, this is not a replacement for Avahi - all it does is handle resolving .local hostnames, but we also use Avahi for discovery.
Reacted by Герхард PICCORO Lenz McKAY , Koopa and Marek Lukáš
Please look at the DBUS API "documentation" provided for the systemd resolver - you'll notice an absence of anything that can be used to browse for service types or register a service instance and its TXT/LOC records. DNS-SD support is more than resolving the address for a name...
@nursoda systemd's resolved only handles mDNS hostname lookups (something.local) and not generic service discovery. WRT my comment two years ago about service registration, systemd supports registering a SRV and TXT record for a systemd service (e.g. a _ipps-system._tcp service registration for cupsd, if it supported the IPP System Service), but not "sub-services" under that systemd service (like the individual printer registrations to _ipp._tcp and _ipps._tcp), nor does it support DNS-SD sub-types (like _print._sub._ipp._tcp for IPP Everywhere), flagship naming (_printer._tcp is used to reserve service instance names for network printers).
Reacted by Jason Nader and Pierre Carru
Reacted by Olav Seyfarth, Hunter Beast, Corbo, Sergei G, Qx ElleJay and Kent
@nursoda systemd's resolved only handles mDNS hostname lookups (something.local) and not generic service discovery. WRT my comment two years ago about service registration, systemd supports registering a SRV and TXT record for a systemd service (e.g. a _ipps-system._tcp service registration for cupsd, if it supported the IPP System Service), but not "sub-services" under that systemd service (like the individual printer registrations to _ipp._tcp and _ipps._tcp), nor does it support DNS-SD sub-types (like _print._sub._ipp._tcp for IPP Everywhere), flagship naming (_printer._tcp is used to reserve service instance names for network printers).
systemd-resolved now supports both service discovery and runtime service registration.
Activity
michaelrsweet commentedon Dec 9, 2018
Based on the available documentation, this is not a replacement for Avahi - all it does is handle resolving .local hostnames, but we also use Avahi for discovery.
enihcam commentedon Dec 9, 2018
@michaelrsweet systemd-resolved itself is a
full Multicast DNS responder.https://systemd.network/resolved.conf.html#MulticastDNS=
michaelrsweet commentedon Dec 9, 2018
@enihcam systemd-resolved does not support service browsing, which makes it useless for CUPS.
michaelrsweet commentedon Dec 9, 2018
Please look at the DBUS API "documentation" provided for the systemd resolver - you'll notice an absence of anything that can be used to browse for service types or register a service instance and its TXT/LOC records. DNS-SD support is more than resolving the address for a name...
michaelrsweet commentedon Dec 9, 2018
https://www.freedesktop.org/wiki/Software/systemd/resolved/
michaelrsweet commentedon Dec 9, 2018
And digging deeper I find that only systemd services can register DNS-SD records - there is no support for anything more...
nursoda commentedon May 6, 2020
According to https://www.freedesktop.org/wiki/Software/systemd/resolved/ , systemd-resolved does have service discovery implemented by now, right? I'm just asking here since https://wiki.archlinux.org/index.php/CUPS#Network still points to this issue stating that "CUPS does not support using systemd-resolved for DNS-SD".
Not sure about your last comment on which services can register DNS-SD records though …
michaelrsweet commentedon May 7, 2020
@nursoda systemd's resolved only handles mDNS hostname lookups (something.local) and not generic service discovery. WRT my comment two years ago about service registration, systemd supports registering a SRV and TXT record for a systemd service (e.g. a _ipps-system._tcp service registration for cupsd, if it supported the IPP System Service), but not "sub-services" under that systemd service (like the individual printer registrations to _ipp._tcp and _ipps._tcp), nor does it support DNS-SD sub-types (like _print._sub._ipp._tcp for IPP Everywhere), flagship naming (_printer._tcp is used to reserve service instance names for network printers).
quentinmit commentedon Apr 5, 2024
systemd-resolved now supports both service discovery and runtime service registration.
There's a blog post at https://daenney.github.io/2021/11/14/replacing-avahi-exploring-dnssd/ that explains how to do service discovery, but the gist is:
and dynamic service registration is done with the
RegisterServiceandUnregisterServicemethods.Can this issue please be reopened now that systemd-resolved appears to have the necessary discovery and advertisement features?