systemd-resolved不响应MulticastDNS导致本地主机名无法解析求助
systemd-resolved不响应MulticastDNS导致本地主机名无法解析求助
最近我把所有网络相关组件都换成systemd自带的工具了——NetworkManager、dnsmasq、dhcpcd、avahi-daemon全卸载了,目前大部分功能都正常运行,唯独遇到一个头疼的问题:我的台式机现在没法解析本地主机名了!
比如我尝试ping本地设备fritzwlan时,直接报错:
C:\Users\Christian>ping fritzwlan
Ping request could not find host fritzwlan. Please check the name and try again.
我在网关服务器gatekeeper上用tcpdump -i lan -p udp抓包,能看到台式机一直在发送MulticastDNS查询请求:
15:27:18.381225 IP Desktop.mdns > mdns.mcast.net.mdns: 0 A (QM)? fritzwlan.local. (33) 15:27:18.381506 IP Desktop.mdns > mdns.mcast.net.mdns: 0 AAAA (QM)? fritzwlan.local. (33) 15:27:18.469278 IP gatekeeper.mdns > mdns.mcast.net.mdns: 0 PTR (QM)? 255.255.1.10.in-addr.arpa. (43) 15:27:18.804129 IP Desktop.61938 > 224.0.0.252.5355: UDP, length 27 15:27:18.804129 IP Desktop.61316 > 224.0.0.252.5355: UDP, length 27 15:27:19.131294 IP Desktop.netbios-ns > 10.1.255.255.netbios-ns: UDP, length 50 ...
看起来台式机的查询请求确实发出去了,但就是没有收到响应,导致本地主机名解析失败。有没有熟悉systemd-resolved配置的朋友,能告诉我怎么调整设置才能让它正确处理MulticastDNS请求,解决这个问题呀?
备注:内容来源于stack exchange,提问作者Christian Stieber
相关产品推荐
相关产品推荐

