errors in named.conf (updated)
Mark_Andrews at isc.org
Mark_Andrews at isc.org
Tue Sep 10 20:59:39 UTC 2002
>
> Here's what I am getting now:
>
> Sep 9 16:27:43 ns1 named[70]: reloading nameserver
> Sep 9 16:27:43 ns1 named[70]: /etc/named.conf:14: syntax error near
> 'view'
> Sep 9 16:27:43 ns1 named[70]: /etc/named.conf:43: syntax error near
> '}'
> Sep 9 16:27:43 ns1 named[70]: /etc/named.conf:48: cannot redefine
> zone '.' class IN
> Sep 9 16:27:43 ns1 named[70]: /etc/named.conf:53: cannot redefine
> zone '1.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.INT
> '
> class IN
> Sep 9 16:27:43 ns1 named[70]: /etc/named.conf:57: cannot redefine
> zone '0.0.127.IN-ADDR.ARPA' class IN
> Sep 9 16:27:43 ns1 named[70]: /etc/named.conf:63: cannot redefine
> zone 'networkstuffs.com' class IN
> Sep 9 16:27:43 ns1 named[70]: /etc/named.conf:68: syntax error near
> '}'
> Sep 9 16:27:43 ns1 named[70]: Ready to answer queries.
You are running BIND 8 trying to use a BIND 9 feature (view).
Ensure that you are starting the right instance of named.
/etc/rc.conf:
named_program="/usr/local/sbin/named"
Mark
> I think it has something to do with whatever the first view statement
> is. Here's exactly (not the line numbers) what's in named.conf (no
> cutting):
>
> 1 // $FreeBSD: src/etc/namedb/named.conf,v 1.6.2.5 2002/02/04 18:24:21
> ume Exp $
> 2
> 3 acl intlan { 192.168.1.0/24; 10.1.1.0/24; };
> 4 options {
> 5 directory "/";
> 6 version ""; //don't reveal bind version
> 7 query-source address * port 53;
> 8 forwarders {
> 9 208.201.224.11;
> 10 };
> 11 dump-file "/master/named_dump.db";
> 12 };
> 13
> 14 view "internal" {
> 15 match-clients { intlan;};
> 16 recursion yes;
> 17 allow-transfer { 10.1.1.11;};
> 18 notify yes;
> 19 zone "." {
> 20 type hint;
> 21 file "/master/named.root";
> 22 };
> 23 zone "0.0.127.IN-ADDR.ARPA" {
> 24 type master;
> 25 file "/master/localhost.rev";
> 26 allow-transfer { localhost; };
> 27 notify no;
> 28 };
> 29 zone "1.1.10.in-addr.arpa" {
> 30 type master;
> 31 file "/master/1.1.10.in-addr.arpa";
> 32 };
> 33
> 34 zone "1.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.
> INT"
> {
> 35 type master;
> 36 file "/master/localhost-v6.rev";
> 37 };
> 38 zone "networkstuffs.com" {
> 39 type master;
> 40 file "/master/networkstuffs.com-int";
> 41 };
> 42
> 43 };
> 44
> 45 view "external" {
> 46 match-clients { any; };
> 47 recursion no;
> 48 zone "." {
> 49 type hint;
> 50 file "/master/named.root";
> 51 };
> 52
> 53 zone "1.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.
> INT"
> {
> 54 type master;
> 55 file "/master/localhost-v6.rev";
> 56 };
> 57 zone "0.0.127.IN-ADDR.ARPA" {
> 58 type master;
> 59 file "/master/localhost.rev";
> 60 allow-transfer { localhost; };
> 61 notify no;
> 62 };
> 63 zone "networkstuffs.com" {
> 64 type master;
> 65 file "/master/networkstuffs.com-ext";
> 66 notify yes;
> 67 };
> 68 };
>
> Thanks
> Kimo R.
>
--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark.Andrews at isc.org
More information about the bind-users
mailing list