blacklist icon indicating copy to clipboard operation
blacklist copied to clipboard

Added script to convert adserver list to bind9 zone file

Open lfechne opened this issue 2 years ago • 4 comments

lfechne avatar Feb 21 '22 13:02 lfechne

I wrote this script for my own sakes, wanted to share.

lfechne avatar Feb 21 '22 13:02 lfechne

@lfechne Thanks for your contribution and thanks to @spirillen for reviewing the changes

anudeepND avatar Mar 18 '22 17:03 anudeepND

@spirillen Let mw know if the script needs any changes as I have never used bind9 before xD

anudeepND avatar Mar 18 '22 17:03 anudeepND

@spirillen Let mw know if the script needs any changes as I have never used bind9 before xD

The answer is, it depends... would you have full blown supper and actually optimize for integrating the RPZ (Response policy zone) then yes, the script need a lot of changes.

Until I know this, I suggest you try to compare the zone file between this one and my pirated zone file (it is the one most most RPZ tricks)

drill axfr pirated.mypdns.cloud @axfr.ipv4.mypdns.cloud -p 530 > pirated.mypdns.cloud

Then there is the other question, what reply do the prefer? the RFC NXDOMAIN (Domain do not exist, stop asking) or a local ip like 127.0.0.1 which will generate a query to localhost:$port and wait for a timeout (usually 60 to 120 sec)

Here is a few issues on @ScriptTiger issue board that touches this topic and I suggest to read before deciding.

  • https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate/issues/25
  • https://github.com/ScriptTiger/Unified-Hosts-AutoUpdate/issues/45

There is also another long thread at the unnamed issues marked something like good discussion in the closed issue section. (it is related to this https://mypdns.org/mypdns/support/-/wikis/dns/DnsHosts#hosts-file-vs-unbound-test) :smirk: :dog2:

spirillen avatar Mar 18 '22 17:03 spirillen