CentOS DNS 出现故障 - 重启后无法解析任何主机名

Dex*_*ave 3 dns centos

我在 CentOS 6.4 上运行 Linux VPS,并通过 putty 远程登录

我对 /etc/sysconfig/selinux 文件进行了更改:

/etc/sysconfig/selinux

# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - No SELinux policy is loaded.
SELINUX=disabled  (default was 'enforcing')
Run Code Online (Sandbox Code Playgroud)

所以我重新启动了我的服务器:

shutdown -r now
Run Code Online (Sandbox Code Playgroud)

现在它再次启动并运行,但它无法解析任何主机名:

当我做:

wget http://wordpress.org/latest.tar.gz
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

Resolving www.wordpress.org... failed: Temporary failure in name resolution.
Run Code Online (Sandbox Code Playgroud)

即使我这样做:

nslookup google.com
Run Code Online (Sandbox Code Playgroud)

它不起作用,同样的错误:无法解析主机名。

我的服务器 DNS 有什么问题?

谢谢

Dex*_*ave 6

我通过对以下文件进行更改(添加 DNS 服务器)来实现此目的:

/etc/sysconfig/network-scripts/ifcfg-eth0

DNS1=8.8.8.8
DNS2=8.8.4.4
DOMAIN=localdomain
Run Code Online (Sandbox Code Playgroud)

正如这个文件所建议的:

/etc/resolv.conf