It works for me without issue;
My config example
Code:
rpz:
name: rpz.whitelist.local.zone
zonefile: /opt/var/lib/zones/rpz.whitelist.zone
rpz:
name: rpz.block.host.local.zone
zonefile: /opt/var/lib/zones/rpz.block.hosts.zone
rpz-action-override: nxdomain
I first blocked asus.com in rpz.block.host.local.zone eg:
Code:
$TTL 2h
@ IN SOA localhost. root.localhost. (1 6h 1h 1w 2h)
IN NS localhost.
; RPZ manual block hosts
asus.com CNAME .
dig asus.com
; <<>> DiG 9.10.6 <<>> asus.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 7381
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;asus.com. IN A
Then, whitelist zone file
Code:
$TTL 2h
@ IN SOA localhost. root.localhost. (1 6h 1h 1w 2h)
IN NS localhost.
; RPZ created from url -> https://orca.pet/notonmyshift/hosts.txt
;
asus.com CNAME rpz-passthru.
dig asus.com
; <<>> DiG 9.10.6 <<>> asus.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12009
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;asus.com. IN A
;; ANSWER SECTION:
asus.com. 14400 IN A 103.10.4.216