Name

negative_dns_ttl

Synopsis

This is similar to positive_dns_ttl, except that it applies only to failed DNS queries. That is, when Squid receives an error for a DNS lookup, it negatively caches the error for this amount of time. It doesn’t retry the query until the negative TTL expires. This applies to both internal and external DNS implementation choices.

Syntax

negative_dns_ttl time-specification

Default

negative_dns_ttl 5 minutes

Example

negative_dns_ttl 1 minute

Related

positive_dns_ttl

Get Squid: The Definitive Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.