/etc/resolv.conf 的内容
nameserver 127.0.0.53
some-domain 127.0.0.1
options edns0 trust-ad
search .
但是 IP 是另一个:
dig some-domain 3.65s 11:17:37
; <<>> DiG 9.18.28-0ubuntu0.22.04.1-Ubuntu <<>> some-domain
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 27200
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;some-domain. IN A
;; Query time: 0 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Sun Aug 25 11:17:42 EDT 2024
;; MSG SIZE rcvd: 40
127.0.0.53 而不是 /etc/resolv.conf 中的 127.0.0.1