|
### /etc/resolv.conf file autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
# NETCONFIG_DNS_STATIC_SEARCHLIST
# NETCONFIG_DNS_STATIC_SERVERS
# NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
# NETCONFIG_DNS_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
# Note: Manual change of this file disables netconfig too, but
# may get lost when this file contains comments or empty lines
# only, the netconfig settings are same with settings in this
# file and in case of a "netconfig update -f" call.
#
### Please remove (at least) this line when you modify the file!
search domain
nameserver 202.96.128.86
nameserver 202.96.134.133
第一行意思是,在查找时,让短主机名+域名组成完整的主机名。如我的短主机名是 ”beyes-linux",那么如果使用 ping 自己时,其实就是在ping linux-beyes.groad (groad 是自定义的 domain )
如果修改成:那么在ping时,就是在 ping linux-beyes.domain.org (修改后,domain不在对应graod )。修改后要生效,得 ifdown eth0 然后 ifup eth0。
下面两行是 DNS 服务器。假如在查询DNS时,第一个DNS服务器坏了(或断线)就会接着往下查询第二台。需要注意的是,如果第一台服务器没坏而是查询不到结果,那么就不会再查询第二台,因为两台的内容都是一样的。 |
|