安装了Red Hat Linux 5 Enterprise经常会遇到远程telnet连不上问题,如下所示:
错误信息:
getnameinfo: localhost: Success
Temporary failure in name resolution: Illegal seek
在网上似乎没有准确有效的解决办法,现给出两种解决途径:
解决办法:
以root用户登陆后
方法1、最简单、最有效的办法:
vi /etc/nsswitch.conf
找到hosts: files [color=red]dns[/color]
将红色的dns删除,保存即可。
方法2、编辑host文件
vi /etc/hosts
把要访问telnet的客户端的IP和主机名加进去,并保存退出,然后重启xinted服务
错误信息:
getnameinfo: localhost: Success
Temporary failure in name resolution: Illegal seek
在网上似乎没有准确有效的解决办法,现给出两种解决途径:
解决办法:
以root用户登陆后
方法1、最简单、最有效的办法:
vi /etc/nsswitch.conf
找到hosts: files [color=red]dns[/color]
将红色的dns删除,保存即可。
方法2、编辑host文件
vi /etc/hosts
把要访问telnet的客户端的IP和主机名加进去,并保存退出,然后重启xinted服务