Querying a resolver that is down makes dig sit for a long time. The defaults are a five second timeout and three tries, so you wait around fifteen seconds for a failure.
dig +timeout=2 +tries=1 @10.0.0.53 example.com
dig +timeout=2 +tries=1 +short @10.0.0.54 example.com
+timeout sets the wait per attempt in seconds and +tries sets how many attempts dig makes. Lower values are handy in a loop or script that checks several resolvers in a row, because one dead server no longer holds up the rest. The exit status is 9 when no reply came back, so || in a shell script works well here.
Further reading: dig manual page
Going deeper: Guide: dig for beginners, look up DNS records and read the answer