Last active
March 8, 2018 11:52
-
-
Save gkralik/8d3efae70c2a807950799b1fec6c139f to your computer and use it in GitHub Desktop.
Bind DNS Sinkhole
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
zone "blacklisted.domain" {type master; file "/etc/bind/blockeddomains.db";}; |
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 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 |
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
# [...] | |
include "/etc/bind/blacklisted.zones"; | |
# [...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment