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
The query includes an instance name along with the service type, protocol, and domain (e.g. zephyr._http._tcp.local.). This query asks for all records associated with that specific service instance, including SRV, TXT, and address records (A/AAAA).
On Mac: dns-sd -i <your_nic> -L zephyr _http._tcp local
In Linux (not sure if this works): avahi-browse -i <your_nic> -rt zephyr._http._tcp -d local
Note: I'm using a _http service as example here, the mdns_responder sample registers a _zephyr service.
2) Service Enumeration Query
In this case, the query omits the instance name and only includes the service type, protocol, and domain (e.g. _http._tcp.local.). This lets the client discover all devices on the network that have this service type. The response is typically a set of PTR records listing the individual service instance names.
On Mac: dns-sd -i <your_nic> -B _http._tcp local
On Linux: avahi-browse -i <your_nic> -rt _http._tcp -d local
3) Service Type Enumeration Query
This is a special meta-query using the reserved service name _services._dns-sd._udp.local.. When a client sends a query for this name, it receives a list of all service types currently advertised on the local network. (More info RFC 6763: DNS-Based Service Discovery)
On Mac: dns-sd -i <your_nic> -B _services._dns-sd._udp local
On Linux: avahi-browse -i <your_nic> -rt _services._dns-sd._udp -d local
or avahi-browse -i <your_nic> -a -d local
Describe the bug
When an app sends a service type enumeration query or service enumeration query, zephyr responds correctly:
As you can also see, the mdns_responder correctly receives these service enumeration queries, but does not reply to them. This is a missing feature/bug in the Zephyr implementation.
To Reproduce
west build samples/net/mdns_responder -- -DCONFIG_MDNS_RESPONDER_LOG_LEVEL_DBG=y
Environment (please complete the following information):
jukkar
added
Enhancement
Changes/Updates/Additions to existing features
and removed
bug
The issue is a bug, or the PR is fixing a bug
labels
Apr 23, 2025
There are three DNS‑SD query types in mDNS:
1) Service Instance Query
The query includes an instance name along with the service type, protocol, and domain (e.g.
zephyr._http._tcp.local.
). This query asks for all records associated with that specific service instance, including SRV, TXT, and address records (A/AAAA).On Mac:
dns-sd -i <your_nic> -L zephyr _http._tcp local
In Linux (not sure if this works):
avahi-browse -i <your_nic> -rt zephyr._http._tcp -d local
Note: I'm using a
_http
service as example here, the mdns_responder sample registers a_zephyr
service.2) Service Enumeration Query
In this case, the query omits the instance name and only includes the service type, protocol, and domain (e.g.
_http._tcp.local.
). This lets the client discover all devices on the network that have this service type. The response is typically a set of PTR records listing the individual service instance names.On Mac:
dns-sd -i <your_nic> -B _http._tcp local
On Linux:
avahi-browse -i <your_nic> -rt _http._tcp -d local
3) Service Type Enumeration Query
This is a special meta-query using the reserved service name
_services._dns-sd._udp.local.
. When a client sends a query for this name, it receives a list of all service types currently advertised on the local network. (More info RFC 6763: DNS-Based Service Discovery)On Mac:
dns-sd -i <your_nic> -B _services._dns-sd._udp local
On Linux:
avahi-browse -i <your_nic> -rt _services._dns-sd._udp -d local
or
avahi-browse -i <your_nic> -a -d local
Describe the bug
When an app sends a service type enumeration query or service enumeration query, zephyr responds correctly:
However, we send a regular service instance query, zephyr does not respond:
As you can also see, the mdns_responder correctly receives these service enumeration queries, but does not reply to them. This is a missing feature/bug in the Zephyr implementation.
To Reproduce
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: