Bind Configuration problem.
Hi,
I have a new Fedora 7 installed.I was trying to configure Bind for my local network.I have 2 views defined in named.conf as follows.
options
{
query-source port 53;
query-source-v6 port 53;
directory "/var/named"; // the default
dump-file "data/cache_dump.db";
statistics-file "data/named_stats.txt";
memstatistics-file "data/named_mem_stats.txt";
};
logging
{
channel default_debug {
file "data/named.run";
};
};
view "localhost_resolver"
{
match-clients { localhost; };
match-destinations { localhost; };
recursion yes;
// include "/etc/named.root.hints";
include "/etc/named.rfc1912.zones";
};
view "internal"
{
match-clients { localhost; 10.0.0.0/8; };
match-destinations { localhost; 10.0.0.0/8; };
recursion no;
// include "/etc/named.root.hints";
include "/etc/named.bionline.zones";
};
And the content of /etc/named.rfc1912.zones is :
// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "." IN {
type hint;
file "named.ca";
};
zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
And finally the content of /etc/named.bionline.zones is :
****************
// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
//
// zone "." IN {
// type hint;
// file "named.ca";
// };
//
zone "bionline.biz" IN {
type master;
file "/etc/bionline.biz";
notify no;
allow-update { none; };
};
zone "10.in-addr.arpa" IN {
type master;
file "/etc/rev.bionline.biz";
notify no;
allow-update { none; };
};
Now the problem what i face is among the 2 views localhost_resolver and internal one which comes in the first will be working.
ie: if i place "localhost_resolver" as first in named.conf, bind will not respond to "dig mail.bionline.biz". And if i place "internal" view as first, bind will not respond to "dig localhost".The zones which falls under the first view only work.
Also there are no errors in the log files.Can anyone please suggest where i m going wrong ?
Thanks in advance..
|