networking
protocol_error
ai_generated
partial
mDNS:来自192.168.1.50:5353的响应与对_http._tcp.local的查询不匹配,已忽略
mDNS: Response from 192.168.1.50:5353 does not match query for _http._tcp.local, ignoring
ID: networking/mdns-response-mismatch
75%修复率
80%置信度
1证据数
2024-06-22首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| Avahi 0.8 | active | — | — | — |
| systemd-resolved 252 | active | — | — | — |
| Bonjour (macOS Ventura) | active | — | — | — |
根因分析
多播DNS响应者发送的响应与查询的问题部分不匹配,通常是由于服务广告配置错误或有缺陷的mDNS实现回复了无关记录,导致客户端丢弃该响应。
English
A multicast DNS responder sent a response that does not correspond to the query's question section, often due to a misconfigured service advertisement or a buggy mDNS implementation that replies with unrelated records, causing the client to discard the response.
官方文档
https://avahi.org/wiki/AvahiConfiguration解决方案
-
tcpdump -i eth0 port 5353 -X | grep -A5 'mDNS'
-
iptables -A INPUT -s 192.168.1.50 -p udp --dport 5353 -j DROP
无效尝试
常见但无效的做法:
-
Clearing the local mDNS cache using systemd-resolved or Avahi commands.
90% 失败
The cache is not the issue; the problem is the responder sending mismatched responses. Flushing cache only removes local entries, not the faulty responder behavior.
-
Adjusting TTL on mDNS records to reduce query frequency.
85% 失败
Does not address the mismatch in response; the responder will still send incorrect replies regardless of TTL.