Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Nov 1999 12:57:01 +0800 (WST)
From:      Michael Kennett <mike@laurasia.com.au>
To:        papalia@UDel.Edu (John)
Cc:        freebsd-questions@freebsd.org
Subject:   Re: DNS (was: DNS & Virtual hosting)
Message-ID:  <199911150457.MAA06677@laurasia.com.au>
In-Reply-To: <4.1.19991114230718.0097c8f0@mail.udel.edu> from John at "Nov 14, 99 11:15:26 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Hello John,

> Mike, 
> 
> 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:
> 
> //};
  ^^^^ (see comment below)

The snippet:

> 
> zone "0.0.127.IN-ADDR.ARPA" {
>         type master;
>         file "s/named.localhost.rev";
>         };

looks fine to me.
> 
> I don't see a syntax error?

Neither do I!  What about any syntax errors before this snippet?  E.g. does
the 'options' declaration have a closing brace?  Is it possible that you've
commented it out? The zone declarations must be in a different block from
the options declarations.

If you can't find the problem, it would help if you send the entire named.conf
file to the list.

> 
> 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

The reverse mapping is taking an IP address and converting it into a name.
By setting up three different reverse mapping rules, how can this conversion
be done uniquely?  It can't.

So named is quite correct at barfing about the redeclarations of the
reverse mappings in the 3.2.1.in-addr.arpa zone.  You'll have to decide
which of the three domain names is most important, and use that alone for
the reverse mapping.

> 
> Thanks again!!!
> --John
> 

No worries. Hope it helps,

Mike Kennett
(mike@laurasia.com.au)



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911150457.MAA06677>