[DNS]
我的DNS服务器设置的二级域名不能在外网访问?
我的DNS不能对外网IP反向解析啊,只能对内网进行反响解析,对外网也能进行正向解析。还 有一个情况就是,我自己生成的二级域名也不能通过外网访问,这是为什么呢,DNS是放在内网的,通过端口转发了一下,但是现在可以通过DNS正常的访问外网,谁能帮我解决一下啊谢谢!
我脚本为
named.conf
options {
directory "/var/named";
notify no;
/*
* 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;
forwarders {61.134.1.9;};
};
//
// 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; };
};
zone "abc.com" IN {
type master;
file "wbjd.com";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "abc.1.168.192";
allow-update { none; };
};
include "/etc/rndc.key";
abc.com
$TTL 86400
@ IN SOA server.abc.com. root.server.abc.com. (
2005011900 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS server.abc.com.
localhost. IN A 127.0.0.1
server IN A 192.168.1.238
csserver IN A 192.168.1.201
samba IN A 192.168.1.5
www IN CNAME server.wbjd.com.
ftp IN CNAME server.abc.com.
cs IN CNAME csserver.abc.com.
bbs IN CNAME server.abc.com.
smb IN CNAME samba.abc.com.
abc.1.168.192
$TTL 86400
@ IN SOA server.abc.com. root.serve.abc.com. (
2005011900 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS server.abc.com.
238 IN PTR server.abc.com.
5 IN PTR samba.abc.com.
201 IN PTR csserver.abc.com.
我想问的是我的数据库文件还是named.conf设置的问题导致了不能对外网的IP进行反向解析,还有就我的named.conf从那里设置就可以让我的二级域名在外网也能访问呢,
我的服务器在放在内网的,已经做了端口转发,且局域网都使用这个DNS服务器解析上网,希望有大侠能帮我解决