Sometimes I want to know whether a resolver has an answer in its cache, without making it go out and fetch one.
dig @192.168.1.1 example.com +norecurse
+norecurse clears the RD (recursion desired) flag. A resolver that has the record cached still answers, and one that does not usually returns an empty answer or a refusal. Run this check before a normal lookup of the same name, because the normal lookup fills the cache and hides what you wanted to see. Some resolvers refuse non-recursive queries from clients on purpose, and that is expected.
Further reading: dig manual page
Going deeper: Guide: dig for beginners, look up DNS records and read the answer