FS#41655 - [filesystem] In /etc/nsswitch.conf, add mymachines( and resolve, remove dns).
Attached to Project:
Arch Linux
Opened by test0 (test0) - Friday, 22 August 2014, 12:14 GMT
Last edited by Eli Schwartz (eschwartz) - Thursday, 04 January 2018, 13:42 GMT
Opened by test0 (test0) - Friday, 22 August 2014, 12:14 GMT
Last edited by Eli Schwartz (eschwartz) - Thursday, 04 January 2018, 13:42 GMT
|
Details
Description:
See summary. This incorporates recent changes in systemd. Replacing dns with resolve should only be done when systemd-resolved is used, though. Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Thursday, 04 January 2018, 13:42 GMT
Reason for closing: Fixed
Additional comments about closing: our nsswitch currently matches the systemd recommendation
Thursday, 04 January 2018, 13:42 GMT
Reason for closing: Fixed
Additional comments about closing: our nsswitch currently matches the systemd recommendation
* nss-resolve now (since 229) fallbacks to nss-dns if there's no resolved or dbus running
* c-ares since 1.11 handles 'resolve' in nsswitch the same as 'dns' (to see if dns is enabled - yeah stupid)
https://github.com/systemd/systemd/issues/1692
https://github.com/c-ares/c-ares/issues/33
232
* The nss-resolve module has been changed to strictly return UNAVAIL
when communication via D-Bus with resolved failed, and NOTFOUND when
a lookup completed but was negative. This means it is now possible to
neatly configure fallbacks using nsswitch.conf result checking
expressions. Taking benefit of this, the new recommended
configuration line for the "hosts" entry in /etc/nsswitch.conf is:
hosts: files mymachines resolve [!UNAVAIL=return] dns myhostname
234
* The code to call libnss_dns as a fallback from libnss_resolve when
the communication with systemd-resolved fails was removed. This
fallback was redundant and interfered with the [!UNAVAIL=return]
suffix. See nss-resolve(8) for the recommended configuration.
nsswitch in the current filesystem package seems fine