10
8

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.

/etc/resolv.confが空の場合、/etc/resolvconf/resolv.conf.d/baseに書くとよい

Posted at

参考

現象

/etc/network/interfaces
 auto vmbr0
 iface vmbr0 inet static
    address 10.0.1.2
    netmask 255.255.255.0
    gateway 10.0.1.1
+    dns-nameservers 8.8.8.8 8.8.4.4
 ...

と指定しているのに、/etc/resolv.confが空になる場合の対策

対策

  • /etc/resolvconf/resolv.conf.d/base に書く
/etc/resolvconf/resolv.conf.d/base
nameserver 8.8.8.8
nameserver 8.8.4.4
反映
sudo resolvconf -u
10
8
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
10
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?