Mansoor, your question would probably be better posted to
bind9-users(a)isc.org, rather than this mailing list. dns-wg(a)ripe.net is
for stuff related to the RIPE DNS Working Group and doesn't usually
deal with errors or misunderstandings about named.conf files. If you
do post to bind-users, I strongly suggest you provide your named.conf
file *exactly* as your name server would see it. [Don't hide domain
names or whatever.] That would permit someone on that list to
accurately diagnose the problem.
My guess is you have syntax errors in named.conf or perhaps you're
running a BIND8 name server with a BIND9 configuration file. If it's
the former, you can use named-checkconf from BIND9 to find the error.
A sample named.conf file which uses views can be found under the tests
directory in the BIND9 distribution. This directory contains a test
suite for most of the features in BIND9. Here's an outline of how to
set up views in BIND9, with an inside view for network 10/8 and an
outside view for everything else.
options { ...... };
controls { ...... };
view "inside" {
match-clients { 10/8; };
zone "." { ....... };
zone "example" { ..... };
};
view "outside" {
match-clients { !10/8; };
zone "." { ....... };
zone "example" { ..... };
};
If you have further questions about BIND9 config file syntax, please
take them to bind9-users(a)isc.org, not here. And please don't ask me
directly. :-)