Bind9 delegation子網域 forwarders - Linux

By Necoo
at 2015-10-05T14:34
at 2015-10-05T14:34
Table of Contents
因為正在學習Bind9,所以練習架子網域,要設定一個子網域給另一台伺服器管理
結果是有架成功 不過有個疑問
就是我的zone要設定forwarders { };才能ping通子網域內的A
zone "test.com" {
type master;
file "/etc/bind/master/master.test.com";
forwarder { };
};
關於forwarders我的主要的伺服器裡有一個全域設定:
forwarders {
8.8.8.8;
};
附上master.test.com主要設定:
@ IN NS dns.test.com. ;本機
sub IN NS dns.sub.test.com. ;管理子網域的主機
dns IN A 192.168.0.1
dns.sub.test.com. IN A 192.168.0.2
註解掉forwarders就通不了了
沒註解掉 www.sub.test.com(dns.sub.test.com內設定的A)可以通 外網也可以
而覺得有可能跟forwarders有關是上網爬文的:
The problem is in your named.conf. I'm guessing you've got forwarders defined
in your named.conf somewhere. For any zone for which your server is
authoritative, you need to turn the forwarding off. Using the sample from
above, you should change it to read like this:
zone "lan" {
type master;
file "zone.lan";
forwarders { };
};
經過一天的爬文還是不知道 為何要通自己的子網就要關掉forwarders
所以才向各位大大發問 先謝謝大家看完了!
--
60740 ~爆 9/20 haha554 □ [問題] 你們好
--
結果是有架成功 不過有個疑問
就是我的zone要設定forwarders { };才能ping通子網域內的A
zone "test.com" {
type master;
file "/etc/bind/master/master.test.com";
forwarder { };
};
關於forwarders我的主要的伺服器裡有一個全域設定:
forwarders {
8.8.8.8;
};
附上master.test.com主要設定:
@ IN NS dns.test.com. ;本機
sub IN NS dns.sub.test.com. ;管理子網域的主機
dns IN A 192.168.0.1
dns.sub.test.com. IN A 192.168.0.2
註解掉forwarders就通不了了
沒註解掉 www.sub.test.com(dns.sub.test.com內設定的A)可以通 外網也可以
而覺得有可能跟forwarders有關是上網爬文的:
The problem is in your named.conf. I'm guessing you've got forwarders defined
in your named.conf somewhere. For any zone for which your server is
authoritative, you need to turn the forwarding off. Using the sample from
above, you should change it to read like this:
zone "lan" {
type master;
file "zone.lan";
forwarders { };
};
經過一天的爬文還是不知道 為何要通自己的子網就要關掉forwarders
所以才向各位大大發問 先謝謝大家看完了!
--
60740 ~爆 9/20 haha554 □ [問題] 你們好
推 songgood : 你好09/20 15:14
推 OPPOPOP : 大家好09/20 15:15
推 sunen : 你好 09/20 15:15
推 chuuuck : 你好呀09/20 15:16
推 jim20031234 : 我很好09/20 15:16
--
Tags:
Linux
All Comments

By Eartha
at 2015-10-06T03:50
at 2015-10-06T03:50

By Mason
at 2015-10-07T18:28
at 2015-10-07T18:28

By Bennie
at 2015-10-12T02:21
at 2015-10-12T02:21

By Selena
at 2015-10-13T19:15
at 2015-10-13T19:15

By Annie
at 2015-10-18T15:14
at 2015-10-18T15:14

By Isabella
at 2015-10-19T02:34
at 2015-10-19T02:34

By Madame
at 2015-10-23T15:09
at 2015-10-23T15:09

By Caitlin
at 2015-10-26T00:40
at 2015-10-26T00:40

By Mia
at 2015-10-28T12:20
at 2015-10-28T12:20

By Robert
at 2015-10-31T13:00
at 2015-10-31T13:00

By Robert
at 2015-11-05T07:07
at 2015-11-05T07:07
Related Posts
登入自動開啟家目錄

By Connor
at 2015-10-05T03:15
at 2015-10-05T03:15
輕量隨身碟開機?

By Tracy
at 2015-10-04T21:43
at 2015-10-04T21:43
新手想灌linux的雜問

By John
at 2015-10-04T21:43
at 2015-10-04T21:43
rsync 傳檔設定問題

By Genevieve
at 2015-10-04T21:38
at 2015-10-04T21:38
蘋果新版中文字體...

By Liam
at 2015-10-04T17:24
at 2015-10-04T17:24