Unfortunately, this is technically impossible. Your clients do only query the host name and never tell the DNS server the full URL.
You can see this also as a security feature - why should you tell e.g. your ISP's or Google's DNS servers the full path of what you are visiting?
來源:https://discourse.pi-hole.net/t/show-whole-url-in-query-log-instead-of-domain/4986/2
同類問題:
https://discourse.pi-hole.net/t/how-to-force-pihole-to-display-the-whole-web-address/39465
如果想檢視的話,可以使用WireShark。