曲径通幽论坛

 找回密码
 立即注册
搜索
查看: 9247|回复: 0
打印 上一主题 下一主题

openSUSE 下的 /etc/resolv.conf

[复制链接]

4918

主题

5880

帖子

3万

积分

GROAD

曲径通幽,安觅芳踪。

Rank: 6Rank: 6

积分
34387
跳转到指定楼层
楼主
发表于 2008-12-13 02:26:40 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
### /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

第一行
search domain
意思是,在查找时,让短主机名+域名组成完整的主机名。如我的短主机名是 ”beyes-linux",那么如果使用 ping 自己时,其实就是在ping linux-beyes.groad (groad 是自定义的 domain )

如果修改成:
search domain.org
那么在ping时,就是在 ping linux-beyes.domain.org  (修改后,domain不在对应graod )。修改后要生效,得 ifdown eth0 然后 ifup eth0。

下面两行是 DNS 服务器。假如在查询DNS时,第一个DNS服务器坏了(或断线)就会接着往下查询第二台。需要注意的是,如果第一台服务器没坏而是查询不到结果,那么就不会再查询第二台,因为两台的内容都是一样的。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|曲径通幽 ( 琼ICP备11001422号-1|公安备案:46900502000207 )

GMT+8, 2024-5-28 06:55 , Processed in 0.145953 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表