github.comにアクセスできません

github.comにアクセスできません

nslookup githubは利用できません。

nslookup github 8.8.8.8
;; connection timed out; no servers could be reached

nslookup github.com
;; connection timed out; no servers could be reached

注:デフォルトのns server = gw = router4g = 192.168.0.1(キャッシュDNSサーバーのようです)。私は192.168.0.0/24にいて、私のIP = 192.168.0.130、bcast = 192.168.0.255、IPはdhcpを介してルータから提供されています.

私のnslookupが動作しているようです。

nslookup google.com 
Server:     8.8.8.8
Address:    8.8.8.8#53
Non-authoritative answer:
Name:   google.com
Address: 142.250.187.206
Name:   google.com
Address: 2a00:1450:4009:81f::200e

github.comをtlslookupできます。

tlslookup github.com 
140.82.113.4

注:nslookupの代わりにこのツールを使用して解析が機能する理由がわかりません。 tlslookupに関する情報を取得するためにインターネットを検索しようとしましたが、何も見つかりませんでした。

私はdigで確認しました(nslookupが正しく機能しない場合に備えて)。残念ながら、このツールにはpbが残っています。

dig github.com
; <<>> DiG 9.16.27-Debian <<>> github.com
;; global options: +cmd
;; connection timed out; no servers could be reached

dig @8.8.8.8 github.com
; <<>> DiG 9.16.27-Debian <<>> @8.8.8.8 github.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached

明らかに、名前解決に頼るすべてのコマンドは機能しませんが、この投稿のためにそれらのいくつかを試しました。

ping $(tlslookup github.com)
PING 140.82.114.3 (140.82.114.3) 56(84) bytes of data.
64 bytes from 140.82.114.3: icmp_seq=1 ttl=50 time=259 ms
64 bytes from 140.82.114.3: icmp_seq=2 ttl=50 time=317 ms
64 bytes from 140.82.114.3: icmp_seq=3 ttl=50 time=238 ms
^C
--- 140.82.114.3 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 237.514/271.189/316.968/33.546 ms

しかし、

ping github.com
ping: github.com: Temporary failure in name resolution
openssl s_client -connect github.com:443
140311527400768:error:2008F002:BIO routines:BIO_lookup_ex:system lib:../crypto/bio/b_addr.c:730:Temporary failure in name resolution
connect:errno=11

wget github.com 
--2022-04-28 09:52:02--  http://github.com/
Resolving github.com (github.com)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘github.com’

私はwgetのウェブサイトのIPアドレスを試してみます:

wget 140.82.113.3
--2022-04-28 10:01:13--  http://140.82.113.3/
Connecting to 140.82.113.3:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://140.82.113.3/ [following]
--2022-04-28 10:01:13--  https://140.82.113.3/
Connecting to 140.82.113.3:443... connected.
The certificate's owner does not match hostname ‘140.82.113.3’

IPアドレスに移動すると、証明書が正しくないという警告メッセージが表示され、証明書を渡そうとすると(危険にさらされている)Webサイトにアクセスできなくなります。

私のホストファイルにはブロックされたエントリはありません。

cat /etc/hosts
127.0.0.1   localhost
127.0.1.1   zavata.circus.net   zavata
# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

私のルーティングテーブルではすべてが大丈夫です(192.168.0.1は私のデフォルトゲートウェイ、4gルータです)。

route -n 

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG    600    0        0 wlp1s0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlp1s0
192.168.0.0     0.0.0.0         255.255.255.0   U     600    0        0 wlp1s0

みんなありがとうございます! !

ベストアンサー1

問題はオペレーターにあるようです。 FAI/通信事業者を変更した後は、問題なくgithub.comにアクセスできました。障害のあるFAIに接続したときにサイトにアクセスするためにホストファイルにエントリを追加しました。

おすすめ記事