Or, if you were asking about dkim, something like:
badkeys -a --dkim-dns 20260707._domainkey.google.com
(-a will give you an output whenever it's found any key, otherwise, it'll be silent if it didn't find anything)