标题: opensolaris下ldap和DNS冲突? [打印本页] 作者: jklyekai 时间: 2009-05-06 14:44 标题: opensolaris下ldap和DNS冲突? opensolaris下最近需要运行ldap,而经常导致连WWW.SINA.COM.CN都ping不了,但是可以ping sina的IP地址,后来查看了一下原来是我的hosts这的files dns 的解析顺序被ldap用户占用;于是我在这个前面增加了dns
#
# /etc/nsswitch.ldap:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses LDAP in conjunction with files.
#
# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
passwd: files ldap
group: files ldap
# consult /etc "files" only if ldap is down.
hosts: dns ldap [NOTFOUND=return] files
# Note that IPv4 addresses are searched for in all of the ipnodes databases
# before searching the hosts databases.
ipnodes: ldap [NOTFOUND=return] files