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