duplicate local-zone

Simon Deziel simon+unbound at sdeziel.info
Fri Jun 1 20:05:16 UTC 2018


On 2018-06-01 03:48 PM, 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.

Just putting the "local-data" line should automatically create the right
local-zone implicitly:

server:
  local-data: "0-act.channel.facebook.com A 127.0.0.1"
  local-data: "0-edge-chat.facebook.com A 127.0.0.1"

Maybe that will fix the dup zones problem, I don't know.

HTH,
Simon



More information about the Unbound-users mailing list