免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3046 | 回复: 3
打印 上一主题 下一主题

[SOLARIS] 请教问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2002-04-23 18:01 |只看该作者 |倒序浏览
帮忙解释一下:
to ensure that  the solaris software environment  uses the  changes made to /etc/ethers and /etc/hosts files,edit hte host  and ethers  entries in the
/etc/nsswitch.conf file so that   the file3s patameter appears  before  the
[notfound  =return]  statements.


另外**[notfound=return] 怎么解释呢,呵呵,英语不好

论坛徽章:
0
2 [报告]
发表于 2002-04-24 09:14 |只看该作者
你这段文字好像是配置类似于T3的手册吧。或者是jumpstart?你所说的那一段的意思应该是当系统未找到你所要求的网卡(一般是网络上其他机器上的网卡)时,所返回的信息(即回车)。

论坛徽章:
0
3 [报告]
发表于 2002-04-25 17:36 |只看该作者

谢谢你

我是不是应该这样配置呢/
hosts:                  nis files

写进文件里就行了呢,
nsswitch.conf默认的

hosts:        files


清执教

论坛徽章:
0
4 [报告]
发表于 2002-04-26 02:42 |只看该作者

NOTFOUND=return | continue

e.g.  /etc/nsswitch.conf:
hosts dns [NOTFOUND=continue] nis [NOTFOUND=return] files

It means: check DNS first for name resolution, if found, then stop; otherwise continue to lookup the host in NIS, if found then stop; otherwise return \"host not found\" sort of messages.  This means the files, like /etc/hosts, will never be checked for host name lookup.

So, if you have NIS running on your network, and you prefer to search NIS first, and then local files, the full line should be :
hosts   nis [NOTFOUND=continue] files

If you prefer files first, then you have to swap the nis and files above.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP