B 修改 resolvconf服务的配置文件: /etc/resolvconf/resolv.conf.d/base
这样,在机器重启或 resolvconf 服务重启 都可以保证配置会写到/etc/resolv.conf 里面 其实 /etc/resolv.conf 里面一直都有提示,只是自己没注意看: "DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN" 关于 resolvconf 服务更多信息,可以用man查看:man resolvconf