duplicate local-zone

W.C.A. Wijngaards wouter at nlnetlabs.nl
Mon Jun 4 08:51:20 UTC 2018


Hi,

On 01/06/18 21:48, Fongaboo via Unbound-users wrote:
> 
> I've compiled a blacklist of adtracking sites that I'm trying to block
> by redirecting to 127.0.0.1. Some example entries:
> 
> local-zone: "0-act.channel.facebook.com" redirect
> local-data: "0-act.channel.facebook.com A 127.0.0.1"
> local-zone: "0-edge-chat.facebook.com" redirect
> local-data: "0-edge-chat.facebook.com A 127.0.0.1"
> 
> I've included the file with an include: reference in unbound.conf. But
> if I run unbound-checkconf, I get warnings about duplicate local-zones,
> even though I have confirmed there are none in my file.
> 
> Stranger still, I get warned about a different line number every time I
> run unbound-checkconf, like so:

Those numbers are the time and the process ID and not the line number.
The first number is a timestamp (in seconds).  The 15369:0 is the
pid:tid of the process.

The 'sites' means the name 'sites' is in your config twice.  The second
is of type 'redirect'.  You could search for local-zone: "sites"
redirect in your config.  And there should be another one local-zone:
"sites" <something>.

Best regards, Wouter

> 
> /usr/local/etc/unbound # unbound-checkconf [1527882258]
> unbound-checkconf[15369:0] warning: duplicate local-zone
> [1527882258] unbound-checkconf[15369:0] error: could not enter zone
> sites redirect
> [1527882258] unbound-checkconf[15369:0] fatal error: failed local-zone,
> local-data configuration
> /usr/local/etc/unbound # unbound-checkconf
> [1527882261] unbound-checkconf[15370:0] warning: duplicate local-zone
> [1527882261] unbound-checkconf[15370:0] error: could not enter zone
> sites redirect
> [1527882261] unbound-checkconf[15370:0] fatal error: failed local-zone,
> local-data configuration
> /usr/local/etc/unbound # unbound-checkconf
> [1527882263] unbound-checkconf[15371:0] warning: duplicate local-zone
> [1527882263] unbound-checkconf[15371:0] error: could not enter zone
> sites redirect
> [1527882263] unbound-checkconf[15371:0] fatal error: failed local-zone,
> local-data configuration
> 
> 
> Any idea what is actually going on here?
> 
> 
> TIA
> 
> 
> FONG


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20180604/6ec2b205/attachment.bin>


More information about the Unbound-users mailing list