|
我按照置定贴配置了dns服务器,但发觉只能使用逆向解析,正相解析无法使用,这个问题已经困扰我很久了,不知何解请各位高手指教一下,如下是我的配置文件
named.conf
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
forwarders {10.1.1.100;};
zone "domain2.exmaple.com" IN {
type master;
file "domain2.example.com.zone";
allow-update { none; };
};
zone "173.11.100.10.in-addr.arpa" IN {
type master;
file "10.100.11.173.zone";
allow-update { none; };
};
domain2.example.com.zone
$TTL 86400
@ IN SOA domain2.example.com. root.domain2.example.com.( 2001101100
28800
14400
3600000
0 )
IN NS domain2.example.com.
IN A 10.100.11.173
domain2.example.com IN A 10.100.11.173
www IN A 10.100.11.173
ftp IN A 10.100.11.173
pop IN A 10.100.11.173
www1 IN CNAME domain2.example.com.
www2 IN CNAME domain2.example.com.
www3 IN CNAME domain2.example.com.
10.100.11.173.zone
$TTL 86400
@ IN SOA domain2.example.com. root.domain2.example.com. (
4
10800
3600
686400
86400 )
@ IN NS domain2.example.com.
IN PTR domain2.example.com.
以上就是我的三个配置文件,我把我的启动信息也贴上来吧
starting BIND 9.2.4 -u named
Mar 20 13:46:13 station2 named[10121]: using 1 CPU
Mar 20 13:46:13 station2 named: named startup succeeded
Mar 20 13:46:13 station2 named[10121]: loading configuration from '/etc/named.conf'
Mar 20 13:46:13 station2 named[10121]: no IPv6 interfaces found
Mar 20 13:46:13 station2 named[10121]: listening on IPv4 interface lo, 127.0.0.1#53
Mar 20 13:46:13 station2 named[10121]: listening on IPv4 interface eth0, 10.100.11.173#53
Mar 20 13:46:13 station2 named[10121]: command channel listening on 127.0.0.1#953
Mar 20 13:46:13 station2 named[10121]: zone 0.in-addr.arpa/IN: loaded serial 42
Mar 20 13:46:13 station2 named[10121]: zone 173.11.100.10.in-addr.arpa/IN: loaded serial 4
Mar 20 13:46:13 station2 named[10121]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Mar 20 13:46:13 station2 named[10121]: zone 255.in-addr.arpa/IN: loaded serial 42
Mar 20 13:46:13 station2 named[10121]: zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700
Mar 20 13:46:13 station2 named[10121]: zone domain2.exmaple.com/IN: loaded serial 2001101100
Mar 20 13:46:13 station2 named[10121]: zone localdomain/IN: loaded serial 42
Mar 20 13:46:13 station2 named[10121]: zone localhost/IN: loaded serial 42
Mar 20 13:46:13 station2 named[10121]: running
反解时显示的信息
Server: 10.100.11.173
Address: 10.100.11.173#53
173.11.100.10.in-addr.arpa name = domain2.example.com.
正解时报的错误
Server: 10.100.11.173
Address: 10.100.11.173#53
** server can't find domain2.example.com: SERVFAIL |
|