- 论坛徽章:
- 0
|
我做了一个向前转发DNS服务器,在一台LINUX上工作好好的,可是在另一台上本地的域名就是无法解析,却可以解析外网的所有地址,配置我贴给大家看看:
// generated by named-bootconf.pl
options {
directory "/var/named";
// recursion no;
// fetch-glue no;
/* allow-query{
192.168.0.0/16;
10.20.102.0/27;
127.0.0.1;
};*/
/*
* 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{
218.2.135.1;
};
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "root";
};
zone "localhost" IN {
type master;
file "localhost";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "127.0.0";
allow-update { none; };
};
include "/etc/rndc.key";
zone "sju.js.cn" {
type master;
file "sju.js.cn";
};
zone "127.190.222.IN-ADDR.ARPA"{
type master;
file "222.190.127";
};
==================
$TTL 86400
@ IN SOA sju.js.cn. root.sju.js.cn. (
2003032201 ; serial
3600 ; refresh
900 ; retry
1209600 ; expire
43200 ; default_ttl
)
@ IN A 222.190.127.21
@ IN NS dns
@ IN MX 10 mail
pop IN CNAME mail
pop3 IN CNAME pop
imap IN CNAME pop
smtp IN CNAME mail
www IN A 222.190.127.2
mail IN A 222.190.127.3
dns IN CNAME @
localhost. IN A 127.0.0.1
===============
$TTL 86400
$ORIGIN 127.190.222.IN-ADDR.ARPA.
@ IN SOA sju.js.cn. root.sju.js.cn.(
2002032001 ; serial
3600 ; refresh
900 ; retry
1209600 ; expire
43200 ; default_ttl
)
@ IN NS dns.sju.js.cn.
@ IN MX 10 mail.sju.js.cn.
2 IN PTR www.sju.js.cn.
3 IN PTR mail.sju.js.cn.
21 IN PTR dns.sju.js.cn.
配置如上,请大家帮我想办法啊,谢谢! |
|