LoginSignup
1
2

【メモ】Ubuntu 16.04 で DNS を設定する

Last updated at Posted at 2019-08-21

Ubuntu 16.04 で DNS を設定する

通常は /etc/network/interfaces に

nameserver 172.17.0.8 172.17.0.16

という行があれば設定されているはず。

何らかの理由で上記の設定がうまく動かない場合、以下の設定で無理矢理動作させることができる

/etc/resolvconf/resolv.conf.d/head

の最終行に

nameserver 172.17.0.8

などと書く。ただし、「このファイルは手で書き換えるな」とコメント行に書いてあるので動作保証外

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