mDNS resolver doesn't work if IPv4 is disabled #86477
Labels
area: Networking
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
The mDNS resolver always times out if only IPv6 is enabled, even if there has been a valid response to the query.
I have tested this with both our own hardware (STM32H743-based) and the ST Nucleo-H563ZI. The problem is present in both Zephyr 3.7.1 and current main (commit 95c1c85).
I tried enabling more debug output but it seems like the response packet is being ignored at a low level because I couldn't see any indication of it being received.
To Reproduce
Configure the samples/net/dns_resolve sample with IPv4 disabled, here are the diffs in my samples/net/dns_resolve/prj.conf:
Build:
west build -p -b nucleo_h563zi dns_resolve/
and flash
west flash
Connect the board directly to a Linux PC and run mDNS responders for IPv4 and IPv6 addresses:
avahi-publish-address -R ferroamp.local fe80::a92:4ff:fe49:be3b
andavahi-publish-address -R 192.0.2.2
Expected behavior
mDNS queries are resolved:
Actual behavior
mDNS queries time out:
Impact
Our system is intended to run in an IPv6-only environment, so this is a significant annoyance.
Logs and console output
Wireshark captures attached: mdns_ok.pcapng, mdns_fail.pcapng
mdns.zip
net iface
output:Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: