liunx不能解析域名&&&&&&修改DNS

vi /etc/sysconfig/network 编辑 添加GATEWAY= [root@MYWANG-VM root]# vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=MYWANG-VM GATEWAY=192.168.0.251 修改DNS [root@MYWANG-VM etc]# vi /etc/resolv.conf ; generated by /sbin/dhclient-script nameserver 192.168.0.18 nameserver 219.141.136.10 nameserver 219.150.32.132 nameserver 202.96.199.133 手动添加默认网关 以root用户,执行: route add default gw 网关的IP 想更改网关 1 [...]

你可能感兴趣的:(liunx)