1.创建/etc/resolv.conf文件
nameserver 127.0.0.1
nameserver 202.102.196.115
nameserver 68.102.196.115
2.修改/etc/nsswitch.conf
将hosts: files一行改成
hosts: files dns
重启。
1.创建/etc/resolv.conf文件
nameserver 127.0.0.1
nameserver 202.102.196.115
nameserver 68.102.196.115
2.修改/etc/nsswitch.conf
将hosts: files一行改成
hosts: files dns
重启。