如果是ubuntu 1404 直接在桌面設定就可以了,
下面的方試會失敗
Ubuntu 網路設定 - DNS
如果今天咱們的工作機 (Desktop or Laptop) DNS 跑掉,又或者上層 (Router) 給的的 DNS 有問題,我們可以手動指定它,以下方法適用於大多 Linux,且改完立即生效!
Ubuntu 於 12.04 開始捨棄了 /etc/resolv.conf 的設計,每次開機皆會重置此檔案,現在得改寫至/etc/network/interfaces 裡才行,詳情請參考 Ubuntu Manpage。
Ubuntu 於 12.04 開始捨棄了 /etc/resolv.conf 的設計,每次開機皆會重置此檔案,現在得改寫至/etc/network/interfaces 裡才行,詳情請參考 Ubuntu Manpage。
[ jonny@precise ~ ]
$ sudo vi /etc/network/interfaces Enter
# DNS of Google
dns-nameservers 168.95.1.1 8.8.8.8
修改完可利用以下指令重新啟動網路。
[ jonny@lucid ~ ]
$ sudo /etc/init.d/networking restart Enter
參考:http://note.drx.tw/2008/02/ubuntu-dns.html
沒有留言:
張貼留言