http://www.netroby.com/view.php?id=3630#.U4aRT_mSzVo

Persist dns nameserver for ubuntu 14.04

 

If you are using ubuntu 14.04, you may find you can not setting dns on your /etc/resolv.conf

This is because ubuntu using resolvconf to manage the dns setting, every times system boot, resolvconf will regenerate resolv.conf file.

But there always have way to do this.

 

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

 

put your nameserver list in

 

nameserver 8.8.8.8
nameserver 8.8.4.4
then run 

 

 

resolvconf -u

 

this command tell resolvconf to regenerate the resolve file

enjoy it.

相关文章:

  • 2021-07-28
  • 2021-12-04
  • 2021-12-30
  • 2021-06-03
  • 2021-12-27
  • 2021-09-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
相关资源
相似解决方案