LoginSignup
6
1

More than 5 years have passed since last update.

スリープ解除後にvagrantでドメイン名が解決出来ない場合の対応

Posted at

はじめに

Windows10上で動作させているvagrantにて、長時間スリープからの復帰後にドメイン名が解決出来ない状態になることが多発した。

環境

Windows10
VatualBox
Vagrant
CentOS 7

対応方法

デフォルトでは下記のようにVatualBoxのキャッシュDNSサーバー(10.0.2.3)が指定されているので、Google Public DNS(8.8.8.8)等の別なDNSサーバーに変更する。

/etc/resolv.conf
# Generated by NetworkManager
# nameserver 10.0.2.3
nameserver 8.8.8.8

変更後は特にサービスの再起動等をしなくても事象が改善した。

6
1
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
6
1