0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VirtualBoxからドメインが解決できない

Last updated at Posted at 2019-09-20

VirtualBoxからドメインが解決できない

事象

VirtualBoxからPingが通らない

ping google.co.jp
ping: unknown host google.co.jp

IP直で疎通するか確認

  • googleのIPを調べる
nslookup google.co.jp
----------------------
名前:    google.co.jp
Addresses:  2404:6800:4004:800::2003
          216.58.197.131
  • ViatualBoxからIP直でpingしてみる
[root@xxxxx ~]# ping 216.58.197.131
PING 216.58.197.131 (216.58.197.131) 56(84) bytes of data.
64 bytes from 216.58.197.131: icmp_seq=1 ttl=53 time=2.27 ms
64 bytes from 216.58.197.131: icmp_seq=2 ttl=53 time=3.13 ms

IP直なら疎通しているのでDNSでのドメインIP変換がダメなようだ

利用するDNSを確認する

vim /etc/resolve.conf

nameserver 172.24.5.81
domain xxxxx.local
  • 古い社内DNSに向いていたので、新しいIPに書き換えて設定反映
# nameserver 172.24.5.81
nameserver 172.17.1.20
domain xxxx.local

[root@xxxx ~]# /etc/init.d/network restart

再度疎通確認

[root@xxxx ~]# ping google.co.jp
PING google.co.jp (216.58.197.131) 56(84) bytes of data.
64 bytes from nrt12s01-in-f131.1e100.net (216.58.197.131): icmp_seq=1 ttl=53 time=2.51 ms
  • 無事に疎通確認。社内でネームサーバー変更した時は注意せねば。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?