关于/etc/resolv.conf文件中的search字段

由 Gustav 在 06-29-2004 10:47 发表:

关于/etc/resolv.conf文件中的search字段

看到资料上说search字段是搜索路径,但还是不太明白

比如我现在是“search localdomain”,它代表什么意思呢?

盼答


由 yongjian 在 06-29-2004 11:51 发表:


search是对于DNS 域或zone的, 如att.com, abc.com. 当指定了nameserver后, 在向DNS server query时将向下搜索指定的域或zone内所有的DNS域名. 比如, 在一个DNS中有abc.com和china.abc.com. 你的resolv.conf为search china.abc.com. 你需要解析myserver这个域名, 这时dns query将append上china.abc.com. 也就是说你将search myserver.china.abc.com. 如果你加上了search abc.com, 这样你就是搜索myserver.china.abc.com和myserver.abc.com


由 Gustav 在 06-29

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus