机器是我远程ssh的,现在我这里的机器nslookup dns2.32767.net
显示non-existent domain
搜索这个问题,CU上有人解释是
是因为你的DNS服务器没有设置反向搜索区域或虽然建立了反向搜索区域但里面的PTR记录还没建立起来。设置这个区域就行啦,记得检查一下里面有没有关于服务器IP地址的PTR记录。
这个句话没看懂,有人知道具体怎么做嘛?是不是因为路由器屏蔽了53端口的原因?
机器是我远程ssh的,现在我这里的机器nslookup dns2.32767.net
显示non-existent domain
搜索这个问题,CU上有人解释是
是因为你的DNS服务器没有设置反向搜索区域或虽然建立了反向搜索区域但里面的PTR记录还没建立起来。设置这个区域就行啦,记得检查一下里面有没有关于服务器IP地址的PTR记录。
这个句话没看懂,有人知道具体怎么做嘛?是不是因为路由器屏蔽了53端口的原因?
附上主要配置文件
named.conf
- // generated by named-bootconf.pl
- options {
- directory "/var/named";
- /*
- * If there is a firewall between you and nameservers you want
- * to talk to, you might need to uncomment the query-source
- * directive below. Previous versions of BIND always asked
- * questions using port 53, but BIND 8.1 uses an unprivileged
- * port by default.
- */
- // query-source address * port 53;
- };
- //
- // a caching only nameserver config
- //
- controls {
- inet 127.0.0.1 allow { localhost; } keys { rndckey; };
- };
- zone "." IN {
- type hint;
- file "named.ca";
- };
- zone "localhost" IN {
- type master;
- file "localhost.zone";
- allow-update { none; };
- };
- zone "0.0.127.in-addr.arpa" IN {
- type master;
- file "named.local";
- allow-update { none; };
- };
- include "/etc/rndc.key";
复制代码
正向的设置32767.net.hosts
- $ttl 38400
- 32767.net. IN SOA dns.32767.net. admin.32767.net. (
- 1080599087
- 10800
- 3600
- 604800
- 38400 )
- 32767.net. IN NS dns.32767.net.
- dns2.32767.net. IN A 218.66.89.171
- dns.32767.net. IN A 218.66.89.171
复制代码
反向的设置
- $ttl 38400
- 171.89.66.218.in-addr.arpa. IN SOA dns.32767.net. admin.32767.net. (
- 1080605117
- 10800
- 3600
- 604800
- 38400 )
- 171.89.66.218.in-addr.arpa. IN NS dns.32767.net.
- 171.89.66.218.in-addr.arpa. IN PTR dns2.32767.net.
- 171.89.66.218.in-addr.arpa. IN PTR dns.32767.net.
复制代码
[ Last edited by SkyZero on 2004-3-30 at 09:24 AM ] |