base-files: Restore mdns ordering in nsswitch.conf
Placing mdns after dns in the host database resolution can cause unintuitive failures for users without nss-mdns or mDNSResponder. When looking up an invalid host, having order "dns mdns" will cause a dns "notfound" result to fall through to mdns, which will yield "unavailable" for users without an mdns provider. This causes clients like ssh to report "Device or resource busy" rather than a more meaningful message to indicate that the hostname is not valid. Flipping back to order "mdns dns" will case an "unavailable" mdns result to fall through to dns, which then returns "notfound" that clients interpret as expected. Because both mDNSResponder and nss-mdns offer a generic mdns provider. The mdns4 and mdns4_minimal providers offered by nss-mdns are subsets of the generic mdns provider, so there is no value in restoring the original "mdns mdns4_minimal mdns4" ordering (in fact, this may have caused failed mdns lookups to be repeated three times). All have been coalesced into the single mdns provider. This (partially) reverts commit cc11e17fab0d514f75a01aa79e44edb06f16bffe.
This commit is contained in:
parent
4713aed3b7
commit
2e6e0d6e80
@ -6,7 +6,7 @@ passwd: files
|
||||
group: files
|
||||
shadow: files
|
||||
|
||||
hosts: files mdns_minimal [NOTFOUND=return] dns mdns
|
||||
hosts: files mdns dns
|
||||
networks: files
|
||||
|
||||
protocols: files
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Template file for 'base-files'
|
||||
pkgname=base-files
|
||||
version=0.141
|
||||
revision=6
|
||||
revision=7
|
||||
bootstrap=yes
|
||||
depends="xbps-triggers"
|
||||
short_desc="Void Linux base system files"
|
||||
|
Loading…
x
Reference in New Issue
Block a user