相关疑难解决方法(0)

19.04 中子域不考虑 avahi 名称解析

这似乎是从 18.10 或 19.04 才开始的行为差异。

虽然avahi-resolve --name my.subdomain.local返回有效的 IP 地址并且正在工作,但在该地址之外无法工作,即pingcurlchrome

不过,名称解析对于subdomain.local. 这似乎与解析为 mDNS CNAME 有关*.subdomain.local

内容nsswitch.conf

passwd:         compat systemd
group:          compat systemd
shadow:         compat
gshadow:        files

hosts:          files mdns4_minimal [NOTFOUND=return] dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis
Run Code Online (Sandbox Code Playgroud)

内容/etc/resolv.conf

nameserver 127.0.0.53
options edns0
Run Code Online (Sandbox Code Playgroud)

dns avahi mdns 19.04

3
推荐指数
1
解决办法
2400
查看次数

标签 统计

19.04 ×1

avahi ×1

dns ×1

mdns ×1