Hi Guys,
I am configuring DNS BIND server I am getting following error, can someone please help ...below is my complete /etc/named.caching-nameserver.conf file :-
[root@ws ~]# service named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
/etc/named.caching-nameserver.conf:37: when using 'view' statements, all zones must be in views
[FAILED]
[root@ws ~]# cat /etc/named.caching-nameserver.conf
//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;
allow-query { localhost; };
allow-query-cache { localhost; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "ws.nyit.edu" IN {
type master;
file "ws.nyit.edu.zone";
allow-update { none; };
};
zone "2.168.192.in-addr.arpa" IN {
type master;
file "ws.nyit.edu.rr.zone";
allow-update { none; };
};
zone "." IN {
type hint;
file "named.ca";
};
view localhost_resolver {
match-clients { localhost; };
match-destinations { localhost; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
Thanks for the help in advance