วันอังคารที่ 25 พฤษภาคม พ.ศ. 2553
วันพฤหัสบดีที่ 13 พฤษภาคม พ.ศ. 2553
Bind DNS and internal/external networks: how to serve different data
Bind DNS and internal/external networks: how to serve different data
For example, I want www.foo.com to respond on IP
- 192.168.1.20 from inside the company’s network
- 193.134.215.34 from the outside world
===================================================
//We define an ACL for the LAN
acl "lan" { localhost; 192.168.1.0/24; };
//We define a view for requests from the LAN
view "internal" {
match-clients { lan; };
zone "foo.com" IN {
type master;
allow-query { any; };
file "foo.com.internal.hosts";
};
};
//We define a view for external requests
view "external" {
match-clients { any; };
zone "foo.com" IN {
type master;
allow-query { any; };
file "foo.com.hosts";
};
zone "bar.com" IN {
type master;
allow-query { any; };
file "bar.com.hosts";
};
};
==========================================
สมัครสมาชิก:
บทความ (Atom)