cannot redefine zone error

Kevin Darcy kcd at daimlerchrysler.com
Mon Aug 13 21:29:05 UTC 2001


juanino at yahoo.com wrote:

> Ok,
>  In case you are curious, I had this error and after searching
> numerous newsgroups and reading through various messages I figured out
> what it is.  Somehow, either in VI or in created my named.conf with a
> script, it duplicated lines.  The best way to tell if you have this
> problem is to grep for the zone you are looking for. i.e. cat
> named.conf | grep zone | grep something.com | wc -l

Or, to do effectively the same thing with only a single process instead
of 4:

     grep -c 'zone.*something\.com' /etc/named.conf

(Sorry, I'm a bit anal-retentive when it comes to shell programming...)


- Kevin





More information about the bind-users mailing list