pihole -q is the command to check your blocklists for a domain.
If you type the command with -h trailing, you get the help for that command
pihole -q -h
Usage: pihole -q [option] <domain>
Example: 'pihole -q -exact domain.com'
Query the adlists for a specified domain
Options:
-adlist Print the name of the block list URL
-exact Search the block lists for exact domain matches
-all Return all query matches within a block list
-h, --help Show this help dialog