Add blocked cnames to pihole log

fonts.gstatic.com (CNAME) isn't blocked

pi@raspberrypi:~ $ pihole -q fonts.gstatic.com
  [i] No results found for fonts.gstatic.com within the block lists

gstaticadssl.l.google.com is blocked

pi@raspberrypi:~ $ pihole -q gstaticadssl.l.google.com
 Match found in https://www.github.developerdan.com/hosts/lists/ads-and-tracking-extended.txt:
   gstaticadssl.l.google.com

in the pihole query log, I see (deep CNAME inspection)

however, in the pihole log, I cannot find any reference to gstaticadssl.l.google.com, only to fonts.gstatic.com

Jul  2 09:52:54 dnsmasq[27254]: query[AAAA] fonts.gstatic.com from 192.168.2.228
Jul  2 09:52:54 dnsmasq[27254]: forwarded fonts.gstatic.com to fdaa:bbcc:ddee:2::5552
Jul  2 09:52:54 dnsmasq[27254]: reply fonts.gstatic.com is <CNAME>

is it possible to add log lines for the domain entry, causing blocking (gstaticadssl.l.google.com)?

I use this little script to find blocked entries quickly, but, items blocked, due to deep CNAME inspection, never show, due to the missing log entries.

#!/bin/bash
logfile=/var/log/pihole.log
tail -F $logfile | grep --line-buffered "is 0.0.0.0\|is ::" | \
    while read x; do
        echo "$x"
    done

6 posts were merged into an existing topic: Display blocked "Deep CNAME" domains in Pi-hole tail & query