Narrator: This is on Master, so pretty much means nothing.
Nothing in either list, dig should NXDOMAIN
dschaper@nanopihole:/etc/pihole$ ls -l {white,black}list.txt
ls: cannot access 'whitelist.txt': No such file or directory
-rw-r--r-- 1 root root 0 Nov 29 19:12 blacklist.txt
dschaper@nanopihole:/etc/pihole$ cat {white,black}list.txt
cat: whitelist.txt: No such file or directory
dschaper@nanopihole:/etc/pihole$ dig +answer arbitrary.domain
; <<>> DiG 9.11.5-P4-5.1-Debian <<>> +answer arbitrary.domain
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 65059
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;arbitrary.domain. IN A
;; Query time: 1 msec
;; SERVER: 192.168.10.2#53(192.168.10.2)
;; WHEN: Fri Nov 29 19:16:16 UTC 2019
;; MSG SIZE rcvd: 45
Blacklist domain, should be 0.0.0.0
dschaper@nanopihole:/etc/pihole$ pihole -b arbitrary.domain
[i] Adding arbitrary.domain to blacklist...
[i] arbitrary.domain does not exist in whitelist, no need to remove!
[i] Pi-hole blocking is enabled
[i] Using cached Event Horizon list...
[i] 45733 unique domains trapped in the Event Horizon
[i] Number of blacklisted domains: 1
[i] Number of regex filters: 8
[β] Parsing domains into hosts format
[β] Cleaning up stray matter
[β] Force-reloading DNS service
[β] DNS service is running
[β] Pi-hole blocking is Enabled
dschaper@nanopihole:/etc/pihole$ dig +answer arbitrary.domain
; <<>> DiG 9.11.5-P4-5.1-Debian <<>> +answer arbitrary.domain
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15074
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;arbitrary.domain. IN A
;; ANSWER SECTION:
arbitrary.domain. 2 IN A 0.0.0.0
;; Query time: 1 msec
;; SERVER: 192.168.10.2#53(192.168.10.2)
;; WHEN: Fri Nov 29 19:16:43 UTC 2019
;; MSG SIZE rcvd: 61
dschaper@nanopihole:/etc/pihole$ ls -l {white,black}list.txt
-rw-r--r-- 1 root root 17 Nov 29 19:16 blacklist.txt
-rw-r--r-- 1 root root 0 Nov 29 19:16 whitelist.txt
dschaper@nanopihole:/etc/pihole$ cat {white,black}list.txt
arbitrary.domain
Whitelist domain, should be NXDOMAIN again from upstream (allowed to resolve)
dschaper@nanopihole:/etc/pihole$ pihole -w arbitrary.domain
[i] Adding arbitrary.domain to whitelist...
[i] Removing arbitrary.domain from blacklist...
[i] Pi-hole blocking is enabled
[i] Using cached Event Horizon list...
[i] 45733 unique domains trapped in the Event Horizon
[i] Number of whitelisted domains: 1
[i] Number of blacklisted domains: 0
[i] Number of regex filters: 8
[β] Parsing domains into hosts format
[β] Cleaning up stray matter
[β] Force-reloading DNS service
[β] DNS service is running
[β] Pi-hole blocking is Enabled
dschaper@nanopihole:/etc/pihole$ dig +answer arbitrary.domain
; <<>> DiG 9.11.5-P4-5.1-Debian <<>> +answer arbitrary.domain
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 13691
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1472
;; QUESTION SECTION:
;arbitrary.domain. IN A
;; AUTHORITY SECTION:
. 932 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2019112900 1800 900 604800 86400
;; Query time: 4 msec
;; SERVER: 192.168.10.2#53(192.168.10.2)
;; WHEN: Fri Nov 29 19:17:09 UTC 2019
;; MSG SIZE rcvd: 120
dschaper@nanopihole:/etc/pihole$ ls -l {white,black}list.txt
-rw-r--r-- 1 root root 0 Nov 29 19:17 blacklist.txt
-rw-r--r-- 1 root root 17 Nov 29 19:17 whitelist.txt
dschaper@nanopihole:/etc/pihole$ cat {white,black}list.txt
arbitrary.domain