config for views

dev_null at zoho.com dev_null at zoho.com
Fri Mar 27 02:10:06 UTC 2009


Hello,

I want to config a named for two networks, using the view.
for example, neta is for internal users, netb is for any other users.
I got the named.conf below, do you have any suggestion on it? thanks.


options {
      directory "/usr/local/bind";
      recursion no;
      zone-statistics yes;
      statistics-file "/usr/local/bind/var/named.stats";
};

view "neta" {
      match-clients { someip; };

      zone "test.a.com" {
           type master;
           file "/usr/local/bind/etc/test.a.com.neta.db";
      };
};

view "netb" {
      match-clients { any; };

      zone "test.a.com" {
           type master;
           file "/usr/local/bind/etc/test.a.com.netb.db";
      };
};

key "rndc-key" {
      algorithm hmac-md5;
      secret "*****************";
};
 
controls {
      inet 127.0.0.1 port 953
              allow { 127.0.0.1; } keys { "rndc-key"; };
};


More information about the bind-users mailing list