From owner-freebsd-questions Thu Jul 15 9:24:15 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cpsgroup.com (dallas-pix.bjke.com [216.207.61.67]) by hub.freebsd.org (Postfix) with ESMTP id 9D1F2155C0 for ; Thu, 15 Jul 1999 09:23:45 -0700 (PDT) (envelope-from corey@cpsgroup.com) Received: from cbrune.cpsgroup.com (cbrune.cpsgroup.com [144.210.12.19]) by cbrune.cpsgroup.com (8.9.3/8.9.3) with ESMTP id NAA04540 for ; Mon, 12 Jul 1999 13:08:12 -0500 (CDT) (envelope-from corey@cpsgroup.com) Date: Mon, 12 Jul 1999 13:08:11 -0500 (CDT) From: Corey Brune Reply-To: cbrune@cpsgroup.com Cc: FreeBSD Questions Subject: Re: BIND 8.2 Config In-Reply-To: <199907110417.AAA16352@cc942873-a.ewndsr1.nj.home.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Did you know that 8.x has a named.boot to named.conf conversion perl script? I it is called named-bootconf.pl. Now for your question: The config needs brackets around the mysubnets and you need a closing bracket around the acl subnets. I made corrections below. I hope this help, Corey On Sun, 11 Jul 1999, Crist J. Clark wrote: > (Not FreeBSD specific, but part of the 2.2.x to 3.x upgrade process.) > > I'm trying to be really clever converting an old named.boot into a > named.conf file. What is giving me grief is the new ACL option. I have > the following lines in my named.conf (the names and addresses > changed), > > acl mynets { > 192.168.0.0/23; > }; > # Global options > options { > directory "/etc/namedb"; > allow-query { mynets }; > allow-transfer { mynets }; > }; > > Starting up on named chokes at the lines using the ACL, i.e., the > lines using 'mynets' in them, > > Jul 11 00:05:14 backmail named[15097]: /etc/namedb/named.conf:16: syntax error near 'mynets' > > Line 16 is the line number of the 'allow-query' line. If I comment > that out, I will get the same error at the 'allow-transfer' line. As > just something to try, I put double-quotes around 'mynets' in the > allow-* lines, and there was no change in the error. > > I poked around a bit, but none of the docs I found for BIND 8.2 > actually used the ACLs in examples. > > Thanks for any help. > -- > Crist J. Clark cjclark@home.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message