歡迎您光臨本站 註冊首頁

求助DNS 伺服器的配置

←手機掃碼閱讀     火星人 @ 2014-03-24 , reply: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

[火星人 ] 求助DNS 伺服器的配置已經有430次圍觀

http://coctec.com/docs/linux/show-post-144691.html