主机AIX telnet响应慢的解决方法
telnet方式登录AIX操作系统慢的可能原因之一(DNS,/etc/resolv.conf)1. 检查DNS配置:请检查/etc/resolv.conf文件,确保里面的配置都正确.如果系统中不使用D
telnet方式登录AIX操作系统慢的可能原因之一(DNS,/etc/resolv.conf)
1. 检查DNS配置:请检查/etc/resolv.conf文件,确保里面的配置都正确.如果系统中不使用DNS,请将/etc/resolv.conf删掉.(不是清空,请直接删除)
2. 设置Telnet服务不使用DNS解析:(1) Telnet编辑/etc/inetd.conf文件,加参数c在telnet和ftp两行最后,如下telnet stream tcp6 nowait root /usr/sbin/telnetd telnetd -a -c刷新inetd服务:# refresh -s inetd
主机AIX telnet响应慢的解决方法
前段时间割接现场同事报障数据库测试主机(AIX5.3)AIX telnet时主机响应巨慢,具体表现为telnet ip_address回车后大概需要1~2分钟才出现login:提示符。根据经验,是DNS解析引起。
以root用户登陆到此AIX主机,发现/etc/resolv.conf为空,无任何内容:
DATA_CESHI:/#ls -l /etc/resolv.conf -rw-r--r-- 1 root system 0 Sep 21 10:10 /etc/resolv.conf DATA_CESHI:/#cat /etc/resolv.conf DATA_CESHI:/#
两种解决方法:
1、如果不需要DNS,直接把/etc/resolv.conf删除;或者配置正确的域名服务器名称及IP,/etc/resolv.conf文件格式类似以下:
domain wzknet.com nameserver 192.168.0.11 nameserver 192.168.0.12
2、可在/etc/netsvc.conf文件手工指定DNS解析顺序为local(本地),即参照/etc/hosts文件。在该文件未尾添加一行:
hosts=local
建议:
1、如果确认不需要DNS,直接删除/etc/resolv.conf文件;
2、如果确认需要DNS,则在/etc/resolv.conf文件中配置正确的域名服务器名称和IP,域名解析需要得到域名服务器回应后才继续以下的动作,如果域名服务器很慢或忙,则也会造成AIX telnet主机慢的现象。
配置文件改成
cat /etc/netsvc.conf
hosts = local, bind
Unix主机上诸如telnetd、ftpd、logind这类的服务程序,通常在接受连接时试图知道客户机的IP对应的域名,它当然会查询本地DNS Server,DNS Server或者会回答Unix主机以客户机的域名,或者会通过Unix主机客户机没有域名,或者查询超时..当客户机IP在本地DNS Server上没有反向域名记录时,DNS Server与外界联系是必须的..本地LAN与Internet连接的速度当然会影响到反向域名解析,最糟糕的情况是telnetd等服务程序要等到反向域名解析超时才会做下一步的工作。
发表于: 2006-7-11 08:33 主题:无意中在《Aix 5L Installation And System Recovery》找到部分原因了
--------------------------------------------------------------------------------
TCP/IP problems
Communication problems with TCP/IP are, in themselves, a large topic, and
detailed coverage is beyond the scope of this publication. However, the following
set of problems is quite common with systems that have just been installed.
-----
If either the DNS is missing or it is not configured correctly, you will not be