Skip to content

[Feature Request] mDNS Service Discovery #1284

@george-palmsens

Description

@george-palmsens

I want to be able to do automatic service discovery using DNS-SD over mDNS.


I would like to be able to use a more advanced hook than xApplicationDNSQueryHook to be able to describe a more comprehensive set of DNS queries to provide responses to. Then DNS-SD could be supported on top of that.


For example:

/* Records necessary for DNS-SD */
const DNSRecordTable_t records[] = {
    {dnsTYPE_PTR, .name ="service._udp.local", .domain="myname.service._udp.local"},
    {dnsTYPE_SRV, .name ="myname.service._udp.local", .port = 5353, target="myname.local"},
    {dnsTYPE_HOST_A, .name = "myname.local"}
};

BaseType_t xApplicationDNSQueryHook(DNSRecordTable_t const ** out_records, size_t* out_records_len) {
    *out_records = records
    *out_records_len = LEN(records);
    return pdTRUE;
}

I am also happy to help deliver this feature.

This would serve LLMNR through the same mechanism.

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