is a very large local-data list a problem?

Simon Deziel simon+unbound at sdeziel.info
Mon Nov 28 16:37:00 UTC 2016


On 2016-11-27 01:08 PM, Spike via Unbound-users wrote:
> We've been using one of those ads blocklists that is basically a long
> text file of local-data statements sending everything to 127.0.0.1.

Memory-wise, I found that just using local-data with the implied
transparent local-zone was best. With a ~12k hosts list:

# local-data: "ads.com A 127.0.0.1"
$ ps aux| grep unbound
unbound 32557 1.5 0.2  58316 15964 ? Ss 11:27 0:00 /usr/sbin/unbound -d

# local-zone: "ads.com" static
$ ps aux| grep unbound
unbound 32139 0.5 0.7 152840 63352 ? Ss 11:21 0:00 /usr/sbin/unbound -d

# local-zone: "ads.com" refuse
$ ps aux| grep unbound
unbound 32247 2.3 0.7 152840 63432 ? Ss 11:22 0:00 /usr/sbin/unbound -d


Setting a local-data with only the A record will return an empty AAAA.

HTH,
Simon



More information about the Unbound-users mailing list