You may recall I already mentioned that information is no longer available, if you restart pihole-FTL, as you also mentioned.
query.sh will already need a change, due to pihole checkout ftl new/tre-regex
, see here.
Adding the deep CNAME inspection info is the original feature request...