Skip to content

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

@spacekitteh

Description

@spacekitteh

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions