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服务器, 测试时提示:如下:
[root@webemailserver init.d]# 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[ent]' 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 的速度就非常的慢”
是指登录的速度很慢?如果是这样,看看/etc/resolv.conf文件的配置有没有问题?
如果慢,你可以把你需要的IP地址加入到hosts里,可以解决一些问题。
是登录的时候慢,登录了以后传输的速度还是比较快的,我的/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?
会员注册
会员登录
个人空间