Ubuntu14.04修改DNS服務


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.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM