systemd/src
Jorge Niedbalski 37d7a7d984 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 201d995),
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: Jorge Niedbalski <jnr@metaklass.org>
2019-07-17 10:42:53 -04:00
..
ac-power
activate activate: move array allocation to heap 2019-07-16 14:56:25 +02:00
analyze Merge pull request #13076 from keszybz/pr/13062 2019-07-16 20:02:26 +02:00
ask-password Enable log colors for most of tools in /usr/bin 2019-05-08 09:50:21 +02:00
backlight
basic Merge pull request #13080 from keszybz/firstboot-fixes 2019-07-17 14:43:15 +02:00
binfmt tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
boot tree-wide: drop duplicated blank lines 2019-07-15 18:41:27 +02:00
busctl tree-wide: replace strjoin() with path_join() 2019-06-21 03:26:16 +09:00
cgls tree-wide: replace strjoin() with path_join() 2019-06-21 03:26:16 +09:00
cgroups-agent
cgtop tree-wide: replace strjoin() with path_join() 2019-06-21 03:26:16 +09:00
core core: ExecCondition= for services 2019-07-17 11:35:02 +02:00
coredump Merge pull request #13092 from keszybz/coverity-fixes 2019-07-17 14:18:49 +02:00
cryptsetup cryptsetup: no need to zero-initialize zero-initialized structures 2019-07-16 12:40:22 +02:00
debug-generator tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
delta tree-wide: replace strjoina() with prefix_roota() 2019-06-25 01:31:26 +09:00
detect-virt Enable log colors for most of tools in /usr/bin 2019-05-08 09:50:21 +02:00
dissect
environment-d-generator
escape Enable log colors for most of tools in /usr/bin 2019-05-08 09:50:21 +02:00
firstboot firstboot: only list all options on demand 2019-07-17 12:07:19 +02:00
fsck fsck: split out fsck return code definitions into a header file of its own 2019-07-05 02:31:12 +09:00
fstab-generator fstab-generator: Prevent double free of reused FILE* 2019-05-03 13:22:36 +02:00
fuzz udev: modernize udev-rules.c 2019-06-02 14:15:26 +09:00
getty-generator tree-wide: make use of errno_or_else() everywhere 2019-07-11 23:20:31 +02:00
gpt-auto-generator tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
hibernate-resume hibernate-resume: add resumeflags= kernel option 2019-06-05 18:59:05 -06:00
hostname tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
hwdb
id128 Enable log colors for most of tools in /usr/bin 2019-05-08 09:50:21 +02:00
import tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
initctl
journal journal: properly read unaligned le64 integers 2019-07-16 15:22:26 +02:00
journal-remote tree-wide: introduce strerror_safe() 2019-07-05 02:43:56 +09:00
kernel-install
libsystemd sd-device: voidify and simplify calls to ordered_hashmap_iterate() 2019-07-17 11:35:04 +02:00
libsystemd-network shared/conf-parser,networkd: EXTRACT_UNQUOTE|EXTRACT_RETAIN_ESCAPE → EXTRACT_UNQUOTE 2019-07-17 11:35:04 +02:00
libudev libudev: hide definition of struct udev_device 2019-06-12 23:59:08 +09:00
locale tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
login tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
machine tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
machine-id-setup
modules-load
mount tree-wide: replace strjoin() with path_join() 2019-06-21 03:26:16 +09:00
network Merge pull request #13092 from keszybz/coverity-fixes 2019-07-17 14:18:49 +02:00
notify tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
nspawn Merge pull request #13092 from keszybz/coverity-fixes 2019-07-17 14:18:49 +02:00
nss-myhostname nss-myhostname: unify code that handles NOT_FOUND case 2019-04-11 11:13:10 +02:00
nss-mymachines nss-mymachines: return NO_RECOVERY instead of NO_DATA when we fail to do D-Bus and similar 2019-04-11 11:13:10 +02:00
nss-resolve codespell: fix spelling errors 2019-04-29 16:47:18 +02:00
nss-systemd
partition growfs: call crypt_set_debug_level() correctly, skip if not needed 2019-07-08 16:04:17 +03:00
path Enable log colors for most of tools in /usr/bin 2019-05-08 09:50:21 +02:00
portable portabled: Make use of SYNTHETIC_ERRNO() 2019-07-04 19:45:23 +02:00
quotacheck
random-seed tree-wide: port various places over to use chmod_and_chown() 2019-05-24 15:07:55 +02:00
rc-local-generator Drop support for /usr/sbin/halt.local 2019-05-23 10:19:01 +02:00
remount-fs
reply-password Remove string_free_erase 2019-07-10 13:48:55 +02:00
resolve resolved: switch cache option to a tri-state option (systemd#5552). 2019-07-17 10:42:53 -04:00
rfkill util: make device_wait_for_initialization() optionally takes timeout value 2019-06-04 01:19:43 +09:00
run run: move comment to appropriate place 2019-07-16 14:29:04 +02:00
run-generator
shared resolved: switch cache option to a tri-state option (systemd#5552). 2019-07-17 10:42:53 -04:00
shutdown shutdown: merge variable declaration lines a bit 2019-07-13 11:05:07 +02:00
sleep systemd-sleep: refuse to calculate swapfile offset on Btrfs 2019-06-26 22:04:59 -07:00
socket-proxy tree-wide: port users over to use new ERRNO_IS_ACCEPT_AGAIN() call 2019-04-10 22:11:18 +02:00
stdio-bridge
sulogin-shell
sysctl tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
system-update-generator system-update-generator: do not emit bogus warning if no /system-update symlink 2019-06-12 17:27:17 +02:00
systemctl Merge pull request #13076 from keszybz/pr/13062 2019-07-16 20:02:26 +02:00
systemd core: ExecCondition= for services 2019-07-17 11:35:02 +02:00
sysusers Rename EXTRACT_QUOTES to EXTRACT_UNQUOTE 2019-06-28 11:35:05 +02:00
sysv-generator tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
test Merge pull request #13092 from keszybz/coverity-fixes 2019-07-17 14:18:49 +02:00
time-wait-sync codespell: fix spelling errors 2019-04-29 16:47:18 +02:00
timedate timedatectl: add 'ntp-servers' and 'revert' commands to modify link NTP servers 2019-07-17 06:59:12 +09:00
timesync Merge pull request #12420 from mrc0mmand/coccinelle-tweaks 2019-04-30 11:37:19 +02:00
tmpfiles tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
tty-ask-password-agent tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
udev tree-wide: drop duplicated blank lines 2019-07-15 18:41:27 +02:00
update-done
update-utmp
user-sessions
vconsole Merge pull request #12378 from rbalint/vt-kbd-reset-check 2019-05-16 16:39:38 +02:00
veritysetup tree-wide: replace strjoin() with path_join() 2019-06-24 23:59:38 +09:00
version
volatile-root