由于ubuntu 12.04之后版本系统,DNS文件由resolvconf模块接管。直接修改/etc/resolv.conf文件不生效,重启后会还原,导致域名解析会出现问题。 一般教程解决办法是卸除resolvconf模块。 卸除方法: apt-get remove resolvconf 但是博主进行卸载时,会提示找不到该包: root@VM-9098:~# apt-get remove resolvconf Reading package lists... ...