Bug#1055415: Wrong order for the `resolve' option in nsswitch.conf
Sylvain Garrigues
sylvain at sylvaingarrigues.com
Sun Nov 5 15:12:00 GMT 2023
Package: libnss-resolve
Version: 252.17-1~deb12u1
X-Debbugs-CC: pkg-systemd-maintainers at lists.alioth.debian.org
The debian postinstall script for libnss-resolve inserts `resolve' in
the `hosts:' line of /etc/nsswitch.conf before `dns', therefore after
`files'. This does not seem optimal, as per `man nss-resolve', which
reads:
Specifically, it is recommended to place "resolve" early in
/etc/nsswitch.conf's "hosts:" line. It should be before the "files"
entry, since systemd-resolved supports /etc/hosts internally, but with
caching.
More information about the Pkg-systemd-maintainers
mailing list