I have a query about nginx resolver that I cannot get a clear answer for from the docs.
By default, nginx caches answers using the TTL value of a response. An optional valid parameter allows overriding it: resolver 127.0.0.1 [::1]:5353 valid=30s;
However my concern is related to handling of a temporary dns resolution failure (NXDOMAIN or some timeout on DNS) - assuming I do not set a specific valid=
. In that case I will not have TTL in an answer section.
Does nginx resolver cache that negative result and if so will setting valid=
impact the "TTL" of that negative caching?