errors in named.conf

Mark_Andrews at isc.org Mark_Andrews at isc.org
Mon Sep 9 22:03:30 UTC 2002


> 
> Hello, I'm trying to setup Bind 9.2.1 on FreeBSD 4.6.2. I keep getting
> these errors in my named.conf file:
> 
> Sep  6 20:18:12 ns1 named[70]: reloading nameserver
> Sep  6 20:18:12 ns1 named[70]: /etc/named.conf:60: syntax error near
> 'view'
> Sep  6 20:18:12 ns1 named[70]: /etc/named.conf:79: syntax error near
> '}'
> Sep  6 20:18:12 ns1 named[70]: /etc/named.conf:95: syntax error near
> '}'
> Sep  6 20:18:12 ns1 named[70]: /etc/named.conf:100: cannot redefine
> zone 'networkstuffs.com' class IN
> Sep  6 20:18:12 ns1 named[70]: /etc/named.conf:105: syntax error near
> '}'
> Sep  6 20:18:12 ns1 named[70]: Ready to answer queries.
> 
> Here's my named.conf. I cut all the comments out:

	Syntax errors are context sensitive.  If you want help you
	will post exactly what is in your named.conf (you can change
	you secret strings to "xxxx").

	Note you have a unnamed view below.

	Mark
> 
> 
> acl intlan { 192.168.1.0/24; 10.1.1.0/24; };
> options {
> 	directory "/";
> #	named-xfer "/bin/named-xfer";
> 	version ""; //don't reveal bind version
> 	query-source address * port 53;
> 
> 	forwarders {
> 208.201.224.11;
> 	};
> 	 dump-file "/master/named_dump.db";
> };
> 
> THIS IS THE FIRST ERROR LINE (60)
> view {
> 	match-clients { any; };
> zone "." {
> 	type hint;
> 	file "/master/named.root";
> };
> zone "0.0.127.IN-ADDR.ARPA" {
> 	type master;
> 	file "/master/localhost.rev";
> 	allow-transfer { localhost; };
> 	notify no;
> };
> 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
> "
> {
> 	type master;
> 	file "/master/localhost-v6.rev";
> };
> THIS IS THE SECOND ERROR LINE (79)
> };
> 
> view "internal" {
> 	match-clients { intlan;};
> 	recursion yes;
> 	allow-transfer { 10.1.1.11;};
> 	notify yes;
> zone "1.1.10.in-addr.arpa" {
> 	type master;
> 	file "/master/1.1.10.in-addr.arpa";
> 	};
> zone "networkstuffs.com" {
> 	type master;
> 	file "/master/networkstuffs.com-int";
> };
> THIS IS THE THIRD ERROR LINE (95)
> };
> 
> view "external" {
> 	match-clients { any; };
> 	recursion no;
> THIS IS THE FOURTH ERROR LINE (100)
> 	zone "networkstuffs.com" {
> 	type master;
> 	file "/master/networkstuffs.com-ext";
> 	notify yes;
> };
> THIS IS THE FIFTH ERROR LINE (105)
> };
> 
> Anybody see a typo or something that I missed.
> 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