Ubuntu Focal 无法解析本地主机

Ubuntu Focal 无法解析本地主机

我正在运行 Ubuntu 20.04.5 LTS 并使用我的路由器作为 DNS 服务器

$ resolvectl status
...
Link 2 (wlp2s0)
      Current Scopes: DNS
DefaultRoute setting: yes
       LLMNR setting: yes
MulticastDNS setting: no
  DNSOverTLS setting: no
      DNSSEC setting: no
    DNSSEC supported: no
  Current DNS Server: 192.168.1.1
         DNS Servers: 192.168.1.1

名称解析适用于远程主机

$ nslookup www.google.com
Server:         127.0.0.53
Address:        127.0.0.53#53

Non-authoritative answer:
Name:   www.google.com
Address: 142.251.41.4
Name:   www.google.com
Address: 2607:f8b0:4006:81f::2004

但不适用于 LAN 中的主机

ravi@adyar[~]$ nslookup voyager
Server:         127.0.0.53
Address:        127.0.0.53#53

** server can't find voyager: SERVFAIL

相关内容