DNS的配置都在/etc/resolv.conf下 配置结果为: # Generated by NetworkManager search Lin # No nameservers found; try putting DNS servers into your # ifcfg files in /etc/sysconfig/network-scripts like so: # # DNS1=xxx.xxx.xxx.xxx # DNS2=xxx.xxx.xxx.xxx # DOMAIN=lab.foo.com bar.foo.com nameserver 10.12.8.200 DNS服务器地址 search www.linguofeng.com DNS域名 也许你修改了该文件但发现原来是无法修改。还是会回到一开始。 先进行对它解锁:chattr -i resolv.conf 修改完成之后再进行加锁: chattr +i resolv.conf (责任编辑:IT) |