Resolvers and servers cache not only resolver queries but they can also cache negative responses. The negative caching information is that a domain name or resource record does not exist. Since the information is cached the response time for negative answers is reduced thus reducing network traffic.
See also:
Resolver
Query
Resource Record
Domain Name