Skip to content

Instantly share code, notes, and snippets.

@samuelthomas2774
samuelthomas2774 / README.md
Last active May 20, 2019 16:45
Generate a BIND Response Policy Zone to block ad hosts
  1. Run generate-rpz.js
  2. Set up a cron/launchd/systemd job/task to run generate-rpz.js every week to month
  3. Add to named.conf:
    response-policy {
        zone "rpz";
    };
    zone "rpz" IN {
        type master;
    

file "/path/to/here/current-zone";

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@samuelthomas2774
samuelthomas2774 / README.md
Created March 1, 2017 17:47
DNS Update Client

Setup

  1. Download this to your device This assumes it will be stored in /home/pi/duckdns.
  2. Change the $domains, $token, $ipv4_interface and $ipv6_interface variables in run.php
  3. Open root's crontab
    sudo crontab -e