- 论坛徽章:
- 0
|
最近查看了一下DNS服务器的配置,于是自己想实验一下,但是弄了两天,还是没有实践出来,自己也看不出是哪里出了问题,我的DNS服务器的名称是dns.zhengjq.net(192.168.1.11), 下面是我的named.conf,正向解析文件及反向解析文件的配置,请大家帮忙看下是哪里出了问题,非常感谢:
name.conf:
// generated by named-bootconf.pl
options {
directory "/var/named";
// query-source address * port 53;
};
//
//
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"{
type master;
file "named.local";
allow-update { none; };
};
zone "zhengjq.net" {
type master;
file "zhengjq.net.zone";
allow-update { none;};
};
zone "1.168.192.in-addr.arpa" {
type master;
file "1.168.192.in-addr.arpa.zone";
allow-update { none;};
};
1.168.192.in-addr.arpa.zone:
$TTL 86400
@ IN SOA dns.zhengjq.net. root.zhengjq.net. (
1997022711 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS dns.zhengjq.net.
11 IN PTR dns.zhengjq.net.
12 IN PTR mail.zhengjq.net.
13 IN PTR www.zhengjq.net.
zhengjq.net.zone:
$TTL 86400
@ IN SOA dns.zhengjq.net. root.zhengjq.net. (
1997022711 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN NS 192.168.1.11
dns.zhengjq.net. IN A 192.168.1.11
mail.zhengjq.net. IN A 192.168.1.12
www.zhengjq.net. IN A 192.168.1.13
/etc/resolv.conf文件配置如下:
nameserver 192.168.1.11
以上是我的配置,service named start 无错误出现,但是使用nslookup 192.168.1.11显示::connection timed out;no servers could be reached |
|