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