logo

domain-blocks

mass-tag based domain blocks, allowying to pick and choose easily

unbound-rpz.sh (183B)


  1. #!/bin/sh
  2. sed -E \
  3. -e 's!#!;!' \
  4. -e 's!local-zone: "!!' \
  5. -e 's!" always_nxdomain!!' \
  6. -e 's!^([^;]+)(.*)$!\1 CNAME . \2\n*.\1 CNAME .!' \
  7. unbound-blocks.conf >|unbound-rpz.conf