Dns

執行 nslookup 時所需的密鑰不可用,探勘

  • December 21, 2020

我最近升級了我的系統,現在我看到一個非常奇怪的錯誤,有什麼想法可以解決這個問題嗎?:

nslookup 8.8.8.8
../../../../lib/isc/unix/socket.c:2135: internal_send: 192.168.43.232#53: Required key not available
../../../../lib/isc/unix/socket.c:2137: unable to convert errno to isc_result: 126: Required key not available
8.8.8.8.in-addr.arpa    name = dns.google.

Authoritative answers can be found from:

編輯:

不幸的是,我沒有註意到通過軟體中心應用程序完成的版本,我正在執行 Ubuntu 18.04 的變體( pop_os )

systemd-resolve --status:

Global
    DNS Servers: 192.168.43.220


Link 3 (wlp113s0)
     Current Scopes: DNS
      LLMNR setting: yes
MulticastDNS setting: no
     DNSSEC setting: no
   DNSSEC supported: no
        DNS Servers: 192.168.43.232
                     2600:1014:b02f:45d5::c3

nmap -p 53 -Pn 192.168.43.232

Starting Nmap 7.60 ( https://nmap.org ) at 2019-07-26 14:00 CDT
Nmap scan report for 192.168.43.232
Host is up.

PORT   STATE    SERVICE
53/tcp filtered domain

Nmap done: 1 IP address (1 host up) scanned in 2.03 seconds

dig 8.8.8.8:

../../../../lib/isc/unix/socket.c:2135: internal_send: 192.168.43.232#53: Required key not available
../../../../lib/isc/unix/socket.c:2137: unable to convert errno to isc_result: 126: Required key not available

; <<>> DiG 9.11.3-1ubuntu1.8-Ubuntu <<>> 8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49678
;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;8.8.8.8.           IN  A

;; ANSWER SECTION:
8.8.8.8.        0   IN  A   8.8.8.8

;; Query time: 6 msec
;; SERVER: 2600:1014:b02f:45d5::c3#53(2600:1014:b02f:45d5::c3)
;; WHEN: Fri Jul 26 14:03:02 CDT 2019
;; MSG SIZE  rcvd: 41

可能相關:

可能的解決方案

  • 嘗試解鎖埠 53。
  • 我遇到了一個問題,docker-compose 對網路做了一些奇怪的事情,所以我跑了docker-compose down && docker-compose up

一個問題是您正在過濾 TCP 埠 53。(DNS 使用 UDP 進行簡短的快速查詢,而 TCP 用於較長的消息。)取消阻止並重試。

引用自:https://unix.stackexchange.com/questions/532356