因為正在學習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
--
All Comments