Skip to content
Commit 37d7a7d9 authored by Jorge Niedbalski's avatar Jorge Niedbalski
Browse files

resolved: switch cache option to a tri-state option (systemd#5552).



Change the resolved.conf Cache option to a tri-state "no, no-negative, yes" values.

If a lookup returns SERVFAIL systemd-resolved will cache the result for 30s (See 201d9958),
however, there are several use cases on which this condition is not acceptable (See systemd#5552 comments)
and the only workaround would be to disable cache entirely or flush it , which isn't optimal.

This change adds the 'no-negative' option when set it avoids putting in cache
negative answers but still works the same heuristics for positive answers.

Signed-off-by: default avatarJorge Niedbalski <jnr@metaklass.org>
parent 81c07a95
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment