Ubuntu14.04修改DNS服務

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

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.confubuntu

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

But there always have way to do this.this

 

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

 

put your nameserver list inspa

 

nameserver 8.8.8.8
nameserver 8.8.4.4
then run 

 

 

resolvconf -u

 

this command tell resolvconf to regenerate the resolve file.net

enjoy it.server

相關文章
相關標籤/搜索