You can use the response policy zone (in the rpz
name), which allows you to override any name requested through your bind server.
The paths relate to Debian.
In the options
/etc/bind/named.conf.options
section, add:
options {
Add the rpz
zone to /etc/bind/named.conf.local
:
zone rpz { type master; file "/etc/bind/db.rpz"; allow-query { none; }; };
Finally, the rpz
zone rpz
/etc/bind/db.rpz
:
; BIND zone file for rpz zone ; $TTL 600 @ SOA localhost. root.localhost. ( 2017100300 ; Serial 86400 ; Refresh 10800 ; Retry 3600000 ; Expire 600 ; Negative Cache TTL ) NS localhost. google.com CNAME forcesafesearch.google.com. example.com A 192.0.2.123
source share