systemd-resolved default config for Caching is still "yes"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Low
|
Dan Streetman | ||
Groovy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[impact]
/etc/systemd/
[test case]
$ grep Cache /etc/systemd/
#Cache=yes
With the version of the package from -proposed it'll be "#Cache=
[regression potential]
any regression would likely result in a mismatch between the commented default value of the Cache parameter and the actual build-time default value, or possibly a problem while systemd-resolved is parsing the resolved.conf file.
[scope]
this is needed only in focal.
this was changed already in groovy as indicated in comment 1.
bionic and earlier still use 'yes' as the default value of Cache=, which matches the resolved.conf file.
[original description]
Back in December, the default for systemd-resolved caching in Ubuntu systemd was changed to "no-negative" from the upstream default "yes" [0]
In this change, the default value in the resolved.conf file was missed. As the defaults in this file are commented, the effective default is still "no-negative", however when viewing the config file, the commented default "yes" is at odds with the man page resolved.conf(5), which correctly states the default as "no-negative".
This was an issue for me as I set DNSSEC to "yes", and expected Caching to also be "yes". Running DNSSEC with the default "no-negative" Caching is detrimental to performance resolving unsigned zones, as the non-existence of DNSSEC RRs must be looked up every time.
The issue with the intersection of DNSSEC and Caching is for upstream, but the least that needs to be done here is updating the resolved.conf template with "Caching=
Changed in systemd (Ubuntu Focal): | |
assignee: | nobody → Dan Streetman (ddstreet) |
importance: | Undecided → Low |
status: | New → In Progress |
description: | updated |
description: | updated |
committed in groovy: /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?h=ubuntu- groovy& id=dd4d93d94ebe 2cf416f6b5a5eb5 9a16432cbc47b
https:/