bind9 view statements

| | Comments (0)

view statements could relpy different result depend on client origin
Example: private view and public view
query from public network ref. file db.test
query from private network ref. file db.test.private
view "public" {
    match-clients { !192.168.0.0/16; any; };
    recursion no;
    zone "." {
        type hint;
        file "named.root";
    };
    zone "test.com" {
        type master;
        file "db.qmio";
    };
};

view "private" {
    match-clients { 192.168.0.0/16; };
    zone "." {
        type hint;
        file "named.root";
    };
    zone "test.com" {
        type master;
        file "db.test.private";
    };
};
Note: to use view statements, all zones must be in views

Leave a comment

March 2009

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Entry

This page contains a single entry by Pank published on January 5, 2005 10:41 PM.

Copernic Desktop Search was the previous entry in this blog.

Slate's 13 Best Movies of 2004 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.