0
我在CentOS 6.3機器上運行綁定9並嘗試做設置和內部DNS服務器。綁定+ centos的內部DNS服務器
我真的很新,需要爲我的公司設置這個,負責這個的人剛剛退出,我是我自己的一段時間。提前致謝。
我已經嘗試了一些教程,到目前爲止,這是我所:
named.conf文件
options {
listen-on port 53 { 127.0.0.1; 192.168.0.24; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; 192.168.0.0/24;};
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
zone "local.logits.me" IN {
type master;
file "fwd.local.logits.me";
allow-update {none;};
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "rev.local.logits.me";
allow-update {none;};
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
fwd.local.logits.me文件
$TTL 86400
@ IN SOA web.local.logits.me. root.local.logits.me. (
2013102113 ; serial
3600 ; refresh
1800 ; retry
604800 ; expire
86400 ; minimum Time to Lie (TTL)
)
@ IN NS web.local.logits.me.
@ IN A 192.168.0.24
web IN A 192.168.0.24
rev.local.logits.me文件
$TTL 86400
@ IN SOA web.local.logits.me. root.local.logits.me. (
2013102113 ; serial
3600 ; refresh
1800 ; retry
604800 ; expire
86400 ; minimum time to live (TTL)
)
@ IN NS web.local.logits.me.
@ IN PTR local.logits.me.
web IN A 192.168.0.24
24 IN PTR web.local.logits.me.
這就是我在嘗試時所得到的結果nslookup
[[email protected] ~]# nslookup local.logits.me
Server: 192.168.0.24
Address: 192.168.0.24#53
** server can't find local.logits.me: NXDOMAIN
[[email protected] ~]# nslookup web.local.logits.me
Server: 192.168.0.24
Address: 192.168.0.24#53
** server can't find web.local.logits.me: NXDOMAIN
[[email protected] ~]# nslookup 192.168.0.24
Server: 192.168.0.24
Address: 192.168.0.24#53
** server can't find 24.0.168.192.in-addr.arpa.: NXDOMAIN
什麼是錯?
您的配置在我的香草CentOS 6.3測試實例中運行得非常好。你完成了'服務名爲reload'嗎? – StvnW
我做了「service named restart」。重新加載失敗。我得到的是: 重新加載named-sdb:[FAILED] /var/log/messages給我:Oct 23 14:49:24 localhost named-sdb [14055]:error(network unreachable)resolvin g'safebrowsing.clients .google.com/AAAA/IN':2001:503:ba3e :: 2:30#53 –