无法在特定网络上解析 Ubuntu 20.04 上的 DNS

无法在特定网络上解析 Ubuntu 20.04 上的 DNS

我只在我父母家遇到 DNS 解析问题,我真的不明白。这是我唯一遇到这个问题的地方。

我的感觉是systemd-resolved配置不正确。当我使用“坏了的”wifi时,我会看到很多这样的消息:

Using degraded feature set (TCP) for DNS server 192.168.0.1.

当我切换到我的热点时,那里就只有几个了。

这是我的/etc/resolv.conf

nameserver 127.0.0.53
options edns0 trust-ad

这是我的resolvectl status

resolvectl status --no-pager                                                                                   
Global
       LLMNR setting: no                  
MulticastDNS setting: no                  
  DNSOverTLS setting: no                  
      DNSSEC setting: no                  
    DNSSEC supported: no                  
          DNSSEC NTA: 10.in-addr.arpa     
                      16.172.in-addr.arpa 
                      168.192.in-addr.arpa
                      17.172.in-addr.arpa 
                      18.172.in-addr.arpa 
                      19.172.in-addr.arpa 
                      20.172.in-addr.arpa 
                      21.172.in-addr.arpa 
                      22.172.in-addr.arpa 
                      23.172.in-addr.arpa 
                      24.172.in-addr.arpa 
                      25.172.in-addr.arpa 
                      26.172.in-addr.arpa 
                      27.172.in-addr.arpa 
                      28.172.in-addr.arpa 
                      29.172.in-addr.arpa 
                      30.172.in-addr.arpa 
                      31.172.in-addr.arpa 
                      corp                
                      d.f.ip6.arpa        
                      home                
                      internal            
                      intranet            
                      lan                 
                      local               
                      private             
                      test                

Link 5 (docker0)
      Current Scopes: none
DefaultRoute setting: no  
       LLMNR setting: yes 
MulticastDNS setting: no  
  DNSOverTLS setting: no  
      DNSSEC setting: no  
    DNSSEC supported: no  

Link 4 (br-4d2c8a375e85)
      Current Scopes: none
DefaultRoute setting: no  
       LLMNR setting: yes 
MulticastDNS setting: no  
  DNSOverTLS setting: no  
      DNSSEC setting: no  
    DNSSEC supported: no  

Link 3 (wlo1)
      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.0.1
         DNS Servers: 192.168.0.1
          DNS Domain: ~.         
                      fritz.box  

Link 2 (enp2s0)
      Current Scopes: none
DefaultRoute setting: no  
       LLMNR setting: yes 
MulticastDNS setting: no  
  DNSOverTLS setting: no  
      DNSSEC setting: no  
    DNSSEC supported: no  

我可以 ping 通公共互联网:

ping 8.8.8.8                                                                                                                                                                                              
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=116 time=48.6 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=116 time=41.1 ms

我已经启用debug日志记录,systemd-resolvd因为这是我的直觉,但可能是错的。

https://pastebin.com/hAbb8ApS

很高兴收到任何提示!

相关内容