duplicate local-zone
Fongaboo
unbound at fongaboo.com
Fri Jun 1 19:48:36 UTC 2018
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:
/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
More information about the Unbound-users
mailing list