請問各位高手,為什麼我的ftp伺服器和telnet連接速度這麼慢?
請問各位高手,我在redhat linux 7.3上配置了dns 伺服器,用nslookup測試,正反都能解析,但只要激活dns 伺服器,用ftp和telnet 的速度就非常的慢,在client端用nslookup測試時提示:如下: (注:我是在區域網上作的,不和外界相連)
C:\>;nslookup
Default Server: webemailserver.testweb.com
Address: 10.149.7.88
>; 10.149.7.88
Server: webemailserver.testweb.com
Address: 10.149.7.88
Name: webemailserver.testweb.com
Address: 10.149.7.88
>; testweb.com
Server: webemailserver.testweb.com
Address: 10.149.7.88
DNS request timed out.
timeout was 2 seconds.
Name: testweb.com
Address: 10.149.7.88
在dns伺服器, 測試時提示:如下:
# nslookup
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil' option to prevent this message from appearing.
>; 10.149.7.88
Server: 10.149.7.88
Address: 10.149.7.88#53
88.7.149.10.in-addr.arpa name = webemailserver.testweb.com.
>; testweb.com
Server: 10.149.7.88
Address: 10.149.7.88#53
Name: testweb.com
Address: 10.149.7.88
>; webemailserver.testweb.com
Server: 10.149.7.88
Address: 10.149.7.88#53
Name: webemailserver.testweb.com
Address: 10.149.7.88
>; localhost
Server: 10.149.7.88
Address: 10.149.7.88#53
Name: localhost
Address: 127.0.0.1
>;
我的配置文件如下:
1./etc/named.conf
options {
directory "/var/named";
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "localhost" IN {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "0.0.127.in-addr.arpa.zone";
};
zone "testweb.com" IN {
type master;
file "testweb.com.zone";
};
zone "7.149.10.in-addr.arpa" IN {
type master;
file "7.149.10.in-addr.arpa.zone";
};
include "/etc/rndc.key";
~
2./var/named/testweb.com.zone
$TTL 86400
@ IN SOA webemailserver.testweb.com. root.testweb.com. (
2003071600; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS webemailserver.testweb.com.
@ IN A 10.149.7.88
@ IN MX 10 webemailserver.testweb.com.
webemailserver. IN A 10.149.7.88
webemailserver.testweb.com. IN A 10.149.7.88
www.testweb.com. IN CNAME webemailserver.testweb.com.
email.testweb.com. IN CNAME webemailserver.testweb.com.
ftp.testweb.com. IN CNAME webemailserver.testweb.com.
3./var/named/7.149.10.in-addr.arpa.zone
$TTL 86400
@ IN SOA webemailserver.testweb.com. root.testweb.com. (
2003071600 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS webemailserver.testweb.com.
88 IN PTR webemailserver.testweb.com.
4./var/named/0.0.127.in-addr.arpa.zone
$TTL 86400
@ IN SOA localhost. root.localhost. (
2003071600; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS localhost.
@ 1 IN PTR localhost.
5./var/named/localhost.zone
$TTL 86400
@ IN SOA localhost. root.localhost. (
2003071600 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS localhost.
localhost. IN A 127.0.0.1
《解決方案》
請問各位高手,為什麼我的ftp伺服器和telnet連接速度這麼慢?
「ftp和telnet 的速度就非常的慢」
是指登錄的速度很慢?如果是這樣,看看/etc/resolv.conf文件的配置有沒有問題?
《解決方案》
請問各位高手,為什麼我的ftp伺服器和telnet連接速度這麼慢?
如果慢,你可以把你需要的IP地址加入到hosts里,可以解決一些問題。
《解決方案》
請問各位高手,為什麼我的ftp伺服器和telnet連接速度這麼慢?
是登錄的時候慢,登錄了以後傳輸的速度還是比較快的,我的/etc/resolv.conf文件的配置是這樣的:domain testweb.com
nameserver 10.149.7.88
應該沒有問題,我在/etc/hosts里加入了客戶端的ip ,速度還是比較慢,問題還是沒有解決.
《解決方案》
03年的帖子啊 我現在遇到了這個問題, 改了resolv.conf不行, 改了hosts也不行. 但最最奇怪的是, ftp到windows ftp server很慢, 但是ftp到虛擬機上的linux ftp server一切正常.
《解決方案》
不用nameserver就應該快了,我碰到
這種問題,都是把resolv.conf中的nameserver
屏蔽掉就解決問題的,感覺好像是linux會去做一次
解析,不知道為什麼,也許是逆向解析客戶端的IP?