主機AIX telnet響應慢的解決方法
telnet方式登錄AIX操作系統(tǒng)慢的可能原因之一(DNS,/etc/resolv.conf)1. 檢查DNS配置:請檢查/etc/resolv.conf文件,確保里面的配置都正確.如果系統(tǒng)中不使用D
telnet方式登錄AIX操作系統(tǒng)慢的可能原因之一(DNS,/etc/resolv.conf)
1. 檢查DNS配置:請檢查/etc/resolv.conf文件,確保里面的配置都正確.如果系統(tǒng)中不使用DNS,請將/etc/resolv.conf刪掉.(不是清空,請直接刪除)
2. 設置Telnet服務不使用DNS解析:(1) Telnet編輯/etc/inetd.conf文件,加參數(shù)c在telnet和ftp兩行最后,如下telnet stream tcp6 nowait root /usr/sbin/telnetd telnetd -a -c刷新inetd服務:# refresh -s inetd
主機AIX telnet響應慢的解決方法
前段時間割接現(xiàn)場同事報障數(shù)據(jù)庫測試主機(AIX5.3)AIX telnet時主機響應巨慢,具體表現(xiàn)為telnet ip_address回車后大概需要1~2分鐘才出現(xiàn)login:提示符。根據(jù)經(jīng)驗,是DNS解析引起。
以root用戶登陸到此AIX主機,發(fā)現(xiàn)/etc/resolv.conf為空,無任何內(nèi)容:
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,域名解析需要得到域名服務器回應后才繼續(xù)以下的動作,如果域名服務器很慢或忙,則也會造成AIX telnet主機慢的現(xiàn)象。
配置文件改成
cat /etc/netsvc.conf
hosts = local, bind
Unix主機上諸如telnetd、ftpd、logind這類的服務程序,通常在接受連接時試圖知道客戶機的IP對應的域名,它當然會查詢本地DNS Server,DNS Server或者會回答Unix主機以客戶機的域名,或者會通過Unix主機客戶機沒有域名,或者查詢超時..當客戶機IP在本地DNS Server上沒有反向域名記錄時,DNS Server與外界聯(lián)系是必須的..本地LAN與Internet連接的速度當然會影響到反向域名解析,最糟糕的情況是telnetd等服務程序要等到反向域名解析超時才會做下一步的工作。
發(fā)表于: 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