感谢你的提议,我修改之后感觉确实快了不少!

To Ding Honghui :
请问mdns与dns有什么区别,或者说mdns比dns先进在什么地方 ?

2008/11/12 隋金鑫 <[EMAIL PROTECTED]>

> Ding Honghui,您好!
>
>    我在debian下这么设置的,不知道是否对你有用:
>
> 编辑/etc/nsswitch.conf文件,文件内容如下,注释掉hosts一行,把hosts改为如下所示:
>
> # /etc/nsswitch.conf
> #
> # Example configuration of GNU Name Service Switch functionality.
> # If you have the `glibc-doc-reference' and `info' packages installed, try:
> # `info libc "Name Service Switch"' for information about this file.
>
> passwd:         compat
> group:          compat
> shadow:         compat
>
> #hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
> hosts:          files dns
> networks:       files
>
> protocols:      db files
> services:       db files
> ethers:         db files
> rpc:            db files
>
> netgroup:       nis
>
>
> ======= 2008-11-12 12:33:48 您在来信中写道:=======
>
> >LI Daobing (李道兵) wrote:
> >> 2008/11/12 Arthur Wong <[EMAIL PROTECTED]>:
> >>>
> >>> 2008/11/12 LI Daobing (李道兵) <[EMAIL PROTECTED]>
> >>>> 2008/11/12 Arthur Wong <[EMAIL PROTECTED]>:
> >>>>> Hello all :
> >>>>>
> >>>>> 记得以前用ubuntu6.06的时候,如果是局域网内 ssh 连接到其它机器,很快就能看到输入密码的提示信息出现;
> >>>>> 但现在每次都要等半天(至少有 30s 吧, 当然还是局域网内),请问大家有这种问题吗?
> >>>>> 有没有什么办法加快一点昵 ?
> >>>>>
> >>>> 关掉SSH服务器的 Dns 试试, 在 /etc/ssh/sshd_config 中加入 UseDNS no, 参见
> sshd_config(5)
> >>> Thank you very much.
> >>>
> >>> 我已经在 /etc/ssh/sshd_config 中最后一行添加了 UseDNS no,
> >>> 并且重启了sshd服务,但好像没什么效果,ssh本地服务器还是需要很长时间等待,请问该如何使配置生效 ?
> >>>
> >> 这样不行就只能查 log 了,我也没有其他办法了。
> >>
> >>
> >>
> >还有可能就是尝试了kerbose的认证。。
> >可以用ssh -vvv host来看看到第什么地方等待时间比较长。
> >
> >
> >--
> >To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> >with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
> >
>
> = = = = = = = = = = = = = = = = = = = =
>
>
> 致
> 礼!
>
>
> 隋金鑫
> [EMAIL PROTECTED]
> 2008-11-12
>
>

回复