Ubuntu 12.04にアップグレードした後、外部ネットワークまたはIPにアクセスできない

Ubuntu 12.04にアップグレードした後、外部ネットワークまたはIPにアクセスできない

私のサーバーでUbuntu 12.04を実行していますが、10.04からアップグレードした後、サーバーの外部ソースにアクセスできなくなりました。

ボックスにSSHで接続できますが、内部では何もアクセスできません。少なくともping、digなどはできません。

より多くの情報を提供できると思われるすべての項目が含まれていますが、ここでは目立って誤った部分が見つかりません。

分析する

 root@sub:~# resolveip google.com
 resolveip: Unable to find hostid for 'google.com': try again

平らな

 root@sub:~# ping google.com
 ping: unknown host google.com

パス-n

 root@sub:~# route -n
 Kernel IP routing table
 Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
 0.0.0.0         77.68.108.1     0.0.0.0         UG    100    0        0 eth0
 77.68.108.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0

iptables-L

 root@sub:~# iptables -L
 Chain INPUT (policy ACCEPT)
 target     prot opt source               destination

 Chain FORWARD (policy ACCEPT)
 target     prot opt source               destination

 Chain OUTPUT (policy ACCEPT)
 target     prot opt source               destination

アップグレード後に変更がありますか?

ベストアンサー1

まず、ゲートウェイにpingしてみてください77.68.108.1。できれば

/etc/resolv.conf設定が間違っていると思います。

/etc/resolv.confファイルを開きます。ファイルの先頭に次の行を追加します。

nameserver 8.8.8.8

これは、すべてのDNS解決要求が転送されるリゾルバです。誰でも使用できる2つのオープンパーサーです8.8.8.88.8.4.4

その後、次のことができますping google.com

おすすめ記事