Skip to content

Instantly share code, notes, and snippets.

@gkralik
Last active March 8, 2018 11:52
Show Gist options
  • Save gkralik/8d3efae70c2a807950799b1fec6c139f to your computer and use it in GitHub Desktop.
Save gkralik/8d3efae70c2a807950799b1fec6c139f to your computer and use it in GitHub Desktop.
Bind DNS Sinkhole
zone "blacklisted.domain" {type master; file "/etc/bind/blockeddomains.db";};
$TTL 3H
@ IN SOA localhost. root.localhost. (
1 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
;
IN NS @
* IN A 127.0.0.1
* IN AAAA ::1
# [...]
include "/etc/bind/blacklisted.zones";
# [...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment