標題:
一台(Bind)DNS主機如何同時做為內外部供不同查詢用
[打印本頁]
作者:
service.support
時間:
2014-3-26 13:49
標題:
一台(Bind)DNS主機如何同時做為內外部供不同查詢用
/etc/named.conf
--------------------------------------------------------------------------------
options {
directory "/var/named/";
};
## 給內部查詢用的
view "internal" {
match-clients { 127.0.0.0/8; 192.168.0.0/16; 10.0.0.0/8; 172.16.0.0/12; };
recursion yes;
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa"{
type master;
file "named.local";
};
zone "hgiga.com" {
type master;
file "/var/named/hgiga.com.internal";
};
};
## 給外部查詢用的
view "external"{
match-clients { any; };
recursion no;
zone "hgiga.com" {
type master;
file "/var/named/hgiga.com.external";
};
};
歡迎光臨 HGIGA Service Docs (http://docs.hgiga.com/Discuz4/)
Powered by Discuz! 4.1.0