Using view statement
Cricket Liu
cricket at menandmice.com
Wed Nov 7 20:23:44 UTC 2001
> Trying to use the view statement, but my log file keeps saying
>
> Nov 7 12:47:33 ns3 named[71638]: starting BIND 9.1.3
> Nov 7 12:47:33 ns3 named[71638]: zone configuration for 'cinense.org'
> failed: already exists
> Nov 7 12:47:33 ns3 named[71638]: loading configuration: failure
> Nov 7 12:47:33 ns3 named[71638]: exiting (due to fatal error)
>
> My named.conf file looks like this.
>
> #########################
> ## 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";
> };
>
> Can someone tell me what I am doing wrong.
The zone statements are supposed to be inside the view
statements, e.g.,
view "internal" {
match-clients { 192.168.100/24; };
zone "cinense.org" {
type master;
file "db.cinense-irn.org";
};
zone "168.192.in-addr.arpa" {
type master;
file "db.168.192.int";
};
};
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