Ubuntu Domain Name 設定

Ubuntu 的 domain name 設定不像以往 Centos直接修改 /etc/resolv.conf 即可,
因為重開機, 理面的值會不見
仔細看了一下, 在開頭的地方寫著:

 
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

所以我一直都再做白工……
原來 Ubuntu 的 domain name 設定也是在 /etc/network/interface 裡面

dns-nameservers 8.8.8.8 8.8.4.4 168.95.1.1
This entry was posted in Ubuntu. Bookmark the permalink.

One Response to Ubuntu Domain Name 設定

  1. 更改後 service network-manager restart ~

Comments are closed.