vi /etc/resolv.conf#比如修改:nameserver 8.8.8.8 改为nameserver 114.114.114.114#随后小写输入“:”“wq”保存#如果是多个DNS,那么就一行一个#比如:nameserver 8.8.8.8 nameserver 114.114.114.114#最后完成后重启网卡让其生效service network restart