Creating an RPZ with BIND9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Do any local configuration here | |
// | |
zone "rpz" { | |
type master; | |
file "/etc/bind/db.rpz"; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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