Using view statement

Cricket Liu cricket at menandmice.com
Wed Nov 7 20:50:18 UTC 2001


> Well,
> 	I made the change to my named.conf file, but now get this 
> in my message
> log.
> 
> Named.conf file
> 
> #########################
> ## Internal Network View
> #########################
> 
> view "internal" {
>         match-clients { 192.168.100/24; };
> 
> ##############################
> ## CINENSE.ORG INTERNAL ZONES
> ##############################
>         zone "cinense.org" {
>                 type master;
>                 file "db.cinense-irn.org";
>         };
> 
>         zone "168.192.in-addr.arpa" {
>                 type master;
>                 file "db.168.192.int";
>         };
> 
> };
> 
> #################
> ## EXTERNAL View
> #################
> 
> view "external" {
>         match-clients { any; };
>         recursion no;
> 
> #########################
> ## CINENSE.ORG OTHERS
> #########################
>         zone "cinense.org" {
>                 type master;
>                 file "db.cinense.org";
>         };
> 
>         zone "168.192.in-addr.arpa" {
>                 type master;
>                 file "db.168.192";
>         };
> };
> 
> 
> MESSAGE Log
> 
> Nov  7 13:24:41 ns3 named[71717]: when using 'view' statements, all zones
> must be in views
> Nov  7 13:24:41 ns3 named[71717]: loading configuration: failure
> Nov  7 13:24:41 ns3 named[71717]: exiting (due to fatal error)
> 
> Now what am I doing wrong...

Is that the whole named.conf file?  (I doubt it, since there's no
options statement.)  Don't you still have other zone statements
that you need to put into one view or both?

cricket

Men & Mice
DNS Software & Services
www.menandmice.com

Attend our next DNS and BIND class!  See
http://www.menandmice.com/8000/8000_dns_training.html
for the schedule and to register for upcoming classes


More information about the bind-users mailing list