mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 22:10:14 +01:00
Introduce a new argument to specify a comma-separated list of NSS
services to use for the "resolve-address" command. For now only accept
"dns" and "files"; the latter can be used to do a lookup into
/etc/hosts.
Note that previously the command failed in presence of extra
arguments. Therefore, when downgrading NetworkManager without
restarting the service, the previously-installed version of the daemon
(newer) would spawn the helper with the extra argument, and the
newly-installed version of the helper (older) would fail. This issue
only impacts hostname resolution and can be fixed by just restarting
the daemon.
In the upgrade path everything works as before, with the only
difference that the helper will use by default both "dns" and "files"
services.
Don't strictly check for the absence of extra arguments, so that in
the future we can introduce more arguments without necessarily break
the downgrade path.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| meson.build | ||
| nm-daemon-helper.c | ||
| README.md | ||
nm-daemon-helper
A internal helper application that is spawned by NetworkManager to perform certain actions.
Currently all it does is doing a reverse DNS lookup, which cannot be done by NetworkManager because the operation requires to reconfigure the libc resolver (which is a process-wide operation).
This is not directly useful to the user.