From owner-freebsd-questions Mon Nov 15 9: 9:47 1999 Delivered-To: freebsd-questions@freebsd.org Received: from java.dpcsys.com (java.dpcsys.com [206.16.184.7]) by hub.freebsd.org (Postfix) with ESMTP id 1A2ED15096 for ; Mon, 15 Nov 1999 09:09:34 -0800 (PST) (envelope-from dan@dpcsys.com) Received: from localhost (dan@localhost) by java.dpcsys.com (8.9.1a/8.9.1) with SMTP id JAA21814; Mon, 15 Nov 1999 09:08:42 -0800 (PST) Date: Mon, 15 Nov 1999 09:08:42 -0800 (PST) From: Dan Busarow To: John Cc: freebsd-questions@FreeBSD.ORG Subject: Re: DNS (was: DNS & Virtual hosting) In-Reply-To: <4.1.19991114230718.0097c8f0@mail.udel.edu> 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 On Sun, 14 Nov 1999, John wrote: > My "flawless" installation of named seems to have some bugs, but I think > they're "user error"... upon bootup, I get the following messages: > > merlin# Nov 14 23:08:42 merlin named[394]: reloading nameserver > Nov 14 23:08:42 merlin named[394]: /etc/namedb/named.conf:64: syntax error > near zo > ne > Nov 14 23:08:42 merlin named[394]: /etc/namedb/named.conf:97: cannot > redefine zone > '75.175.128.in-addr.arpa' class 1 > Nov 14 23:08:42 merlin named[394]: /etc/namedb/named.conf:107: cannot > redefine zon > e '75.175.128.in-addr.arpa' class 1 > Nov 14 23:08:42 merlin named[394]: Ready to answer queries.Nov: No match. > > Seems easy enough to trackdown, rite? Well, this is where the text is > tripping up: > > The syntax error near line 64: > > //}; > > zone "0.0.127.IN-ADDR.ARPA" { > type master; > file "s/named.localhost.rev"; > }; > > I don't see a syntax error? The error is probably earlier in the file. Check your last few uncommented lines before this point. > As for the "can't redefine zones", here are examples of my zones. Are > these allowed: Please recall that I'm planning on setting up 3 domains on > a single IP. In the examples, taking 1.2.3.4 to be my IP and 192.168.1.* > to be my internal subnet. Given that there are 3 domains, are the 2nd and > third zones for reverse IP's needed, or is there something to do inside the > single reverse to make it happen > > zone "foobar1.com" { > type master; > file "foobar1.com"; > }; > > zone "3.2.1.in-addr.arpa" { > type master; > file "foobar1.com.rev"; > }; > > zone "1.168.192.in-addr.arpa" { > type master; > file "internal.rev"; > }; > > zone "foobar2.com" { > type master; > file "foobar2.com"; > }; > > zone "3.2.1.in-addr.arpa" { > type master; > file "foobar2.com.rev"; > }; Well you just tried to redefine 3.2.1.in-addr.arpa. If you want/*need* to delegate less than a /24 see draft-ietf-cidrd-classless-inaddr-01.txt (I think there's a newer release out) From the description of what you want to do there is no reason for you to try and maintain separate reverse zones for those domains. Dan -- Dan Busarow 949 443 4172 Dana Point Communications, Inc. dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message