Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd-resolved + systemd-dnssd as mDNS provider #2629

Open
spacekitteh opened this issue Nov 30, 2024 · 0 comments
Open

systemd-resolved + systemd-dnssd as mDNS provider #2629

spacekitteh opened this issue Nov 30, 2024 · 0 comments

Comments

@spacekitteh
Copy link

spacekitteh commented Nov 30, 2024

I use systemd-resolved's inbuilt DNS-SD and mDNS support, as opposed to Avahi. It would be good to have that available as an option, as systemd-resolved's mDNS and Avahi on the same system interfere with each other.

Publishing services it quite straightforward; just drop a file into /run/systemd/dnssd: https://www.freedesktop.org/software/systemd/man/latest/systemd.dnssd.html

Alternatively, it can be done with a simple call over DBus: https://www.freedesktop.org/software/systemd/man/latest/org.freedesktop.resolve1.html. There is an inbuilt DBus client built into libsystemd, called sd-bus, in the header systemd/sd-bus.h.

See also https://systemd.io/WRITING_RESOLVER_CLIENTS/ and https://systemd.io/WRITING_NETWORK_CONFIGURATION_MANAGERS/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant