diff --git a/pihole b/pihole index d8217fed..8adb15ed 100755 --- a/pihole +++ b/pihole @@ -69,8 +69,9 @@ setupLCDFunction() { queryFunc() { domain="${2}" - for list in /etc/pihole/list.*; do - count=$(grep ${domain} $list | wc -l) + lists=( /etc/pihole/list.* /etc/pihole/blacklist.txt) + for list in ${lists[@]}; do + count=$(grep -c ${domain} $list) echo "::: ${list} (${count} results)" if [[ ${count} > 0 ]]; then grep ${domain} ${list}