
網頁有時無法載入或需要很長時間; Chrome 會提示錯誤為 DNS_PROBE_FINISHED_BAD_CONFIG 或 DNS_PROBE_FINISHED_NXDOMAIN。
我已經能夠在命令列上重現此問題,但挖掘超時或花費的時間比列出的時間長得多;; Query time:
我連續記錄了這三個挖掘查詢; 1 瞬間然後超時,超過 12 秒(但 dig 說 3.5 秒)。
我已將 DNS 設定為 8.8.8.8 和 8.8.4.4,如下systemd-resolve --status
所示
挖掘完整輸出:https://pastebin.com/YPZTnk8U
$ time dig myshopify.com
<omitted>
;; Query time: 36 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Wed Aug 12 18:49:02 PDT 2020
;; MSG SIZE rcvd: 58
real 0m0.044s
$ time dig panda.tv
; <<>> DiG 9.11.3-1ubuntu1.12-Ubuntu <<>> panda.tv
;; global options: +cmd
;; connection timed out; no servers could be reached
real 0m15.009s
$ time dig panda.tv
<VALID ANSWER>
;; Query time: 3859 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Wed Aug 12 18:49:40 PDT 2020
;; MSG SIZE rcvd: 132
real 0m13.871s
127.0.0.53
來自etc/resolv.conf
$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 127.0.0.53
$ systemd-resolve --status
Global
DNSSEC NTA: 10.in-addr.arpa
16.172.in-addr.arpa
<omitted long list of X.172.in-addr.arpa>
corp
d.f.ip6.arpa
home
internal
intranet
lan
local
private
test
Link 2 (eno1)
Current Scopes: DNS
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: no
DNS Servers: 8.8.8.8
8.8.4.4
2607:f060:2::1
2607:f060:2:1::1
2001:4860:4860::8888
2001:4860:4860::8844
DNS Domain: ~.
$ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet <omitted> netmask 255.255.255.192 broadcast <omitted>
inet6 <omitted> prefixlen 64 scopeid 0x0<global>
inet6 <omitted> prefixlen 64 scopeid 0x0<global>
inet6 <omitted> prefixlen 64 scopeid 0x20<link>
RX/TX errors = 0, device interrupt 20 memory 0xf73...
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX/TX errors = 0