Skip to content

Instantly share code, notes, and snippets.

@tdittmar
Last active February 24, 2020 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdittmar/8cbc396ec0b9058a23c2bcab8226cbb0 to your computer and use it in GitHub Desktop.
Save tdittmar/8cbc396ec0b9058a23c2bcab8226cbb0 to your computer and use it in GitHub Desktop.
Creating an RPZ with BIND9
$TTL 60
@ IN SOA localhost. root.localhost. (
2015112501 ; serial
1h ; refresh
30m ; retry
1w ; expiry
30m) ; minimum
IN NS localhost.
localhost A 127.0.0.1
xyz.domain.com A 192.168.i.j
klm.otherdomain.com A 192.168.x.y
//
// Do any local configuration here
//
zone "rpz" {
type master;
file "/etc/bind/db.rpz";
};
options {
directory "/var/cache/bind";
forwarders {
a.b.c.d;
e.f.g.h;
};
...
response-policy { zone "rpz"; };
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment