User Tools

Site Tools


networking:dns:unbound:blacklist_a_domain

Networking - DNS - Unbound - Blacklist a domain

Add an entry like the following to your Unbound configuration:

local-zone: "example.org" always_nxdomain

NOTE: When a client asks the Unbound server where example.org is, it will get an NXDOMAIN response.


Import an external blacklist

The following instructions will download an example list and convert it to Unbound format:

NOTE: Run this using sudo access:

curl -o hosts https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
grep '^0\.0\.0\.0' hosts | awk '{print "local-zone: \""$2"\"always_nxdomain"}' > /etc/unbound/unbound.conf.d/blacklist.conf

networking/dns/unbound/blacklist_a_domain.txt · Last modified: 2020/11/30 12:51 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki