首先查一下当前DNS设置,用以下命令 cat /etc/resolv.conf

显示如下格式: nameserver  x.x.x.x

修改DNS:  vi  /etc/resolv.conf

然后保存即可!