opencoff/unbound-adblock

also sort the whitelist that is generated

ajayramaswamy opened this issue · 0 comments

I have been playing with the output of this progam for the last 2 days to give me dns rpz blocklists with unbound-1.10

I have used the nextdns.io blocklist as a starting point they have a large number of curated lists at https://github.com/nextdns/metadata

first I generated the text list from my feeds then I used awk to make zone files
format for whitelist zone file is lines like this

so perhaps you may want to make an additional output format too

v10.events.data.microsoft.com.wl.example.com. IN CNAME rpz-passthru. *.v10.events.data.microsoft.com.wl.example.com. IN CNAME rpz-passthru. settings-win.data.microsoft.com.wl.example.com. IN CNAME rpz-passthru. *.settings-win.data.microsoft.com.wl.example.com. IN CNAME rpz-passthru. s.youtube.com.wl.example.com. IN CNAME rpz-passthru. *.s.youtube.com.wl.example.com. IN CNAME rpz-passthru.

and also for your reference the format of blaclist rpz zone lines when blocking domains

ap76rmx3.accountant.rpz.krithika.net. IN CNAME . *.ap76rmx3.accountant.rpz.krithika.net. IN CNAME . chameleon.ad.rpz.krithika.net. IN CNAME . *.chameleon.ad.rpz.krithika.net. IN CNAME . content.ad.rpz.krithika.net. IN CNAME . *.content.ad.rpz.krithika.net. IN CNAME . token.ad.rpz.krithika.net. IN CNAME . *.token.ad.rpz.krithika.net. IN CNAME . something-wrong5.agency.rpz.krithika.net. IN CNAME . *.something-wrong5.agency.rpz.krithika.net. IN CNAME .

for just blocking a single host

www.weknow.ac.rpz.example.com. IN CNAME . apple.com-analysis-safety-antimalware-support.accountant.rpz.example.com. IN CNAME . files.native.ad.rpz.example.com. IN CNAME . centro.pixel.ad.rpz.example.com. IN CNAME . ads.emirates.net.ae.rpz.example.com. IN CNAME .