ネイキッドマイニングはサーバーに到達できません。それ以外の場合、解像度は有効です。

ネイキッドマイニングはサーバーに到達できません。それ以外の場合、解像度は有効です。

私は次digのようにpacman -S bindインストールしましたdig

# dig google.com

; <<>> DiG 9.16.25 <<>> google.com
;; global options: +cmd
;; connection timed out; no servers could be reached

ただし、DNS検証は機能します。

# ping google.com
PING google.com (216.58.214.174) 56(84) bytes of data.
64 bytes from mad01s26-in-f174.1e100.net (216.58.214.174): icmp_seq=1 ttl=116 time=2.76 ms
64 bytes from mad01s26-in-f14.1e100.net (216.58.214.174): icmp_seq=2 ttl=116 time=2.91 ms

# dig @192.168.10.3 google.com

; <<>> DiG 9.16.25 <<>> @192.168.10.3 google.com
(...)
;; ANSWER SECTION:
google.com.             180     IN      A       216.58.214.174

;; Query time: 0 msec
;; SERVER: 192.168.10.3#53(192.168.10.3)
;; WHEN: Sat Feb 05 21:12:14 CET 2022
;; MSG SIZE  rcvd: 55

ローカルDNS設定が利用できないようですdig。インストール以外に何をすべきか?

編集:コメントの要求に応じて:

  • ファイアウォールを制御して開いています。
  • /etc/resolv.conf空、/etc/systemd/resolved.confありDNS=192.168.10.3FallbackDNS=8.8.8.8 1.1.1.1
  • dig google.com @8.8.8.8上記と同じ結果を提供します(地理的な場所によってIPが異なります)。
  • traceroute -p 53 -n 8.8.8.8通り過ぎる

ベストアンサー1

Archは電子を/etc/resolv.conf模倣することなく/run/systemd/resolve/resolv.conf使用digします。

# rm /etc/resolv.conf && ln -s  /run/systemd/resolve/resolv.conf /etc/resolv.conf

問題を解決しましたが、これはバグだと思います。これはArchの意図的な選択です(下記の編集を参照)。 Archで解像度を設定する方法(Ubuntuはリンクを提供します/etc/resolv.conf)。

編集する:のように@muruluコメントで述べたように、これは録音されたArchで提案されたソリューションは次のとおりです。

ln -rfs  /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

おすすめ記事