base-files: fix mdns ordering in nsswitch.conf
Using the full `mdns` NSS module in front of `dns` for host lookups causes long delays, e.g., when a telnet client attempts to do reverse DNS lookups on a public IP address and nss-mdns is using Avahi for local mDNS resolution. Upstream recommends using the `_minimal` module before DNS, and then short-circuiting with `NOTFOUND=return`, because the `_minimal` module only addresses queries against the .local domain and link-local addresses. The full `mdns` module is added after DNS to allow a more broad mDNS search after DNS fails to find a result. We prefer `mdns_minimal` and `mdns` to their IPv4-specific `mdns4*` variants because modern mDNS responders seem to provide both IPv6 and IPv4 records when IPv6 is configured. Closes: #28038.
This commit is contained in:
parent
9fe56619be
commit
cc11e17fab
|
@ -6,7 +6,7 @@ passwd: files
|
||||||
group: files
|
group: files
|
||||||
shadow: files
|
shadow: files
|
||||||
|
|
||||||
hosts: files mdns mdns4_minimal mdns4 myhostname dns
|
hosts: files mdns_minimal [NOTFOUND=return] dns mdns
|
||||||
networks: files
|
networks: files
|
||||||
|
|
||||||
protocols: files
|
protocols: files
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'base-files'
|
# Template file for 'base-files'
|
||||||
pkgname=base-files
|
pkgname=base-files
|
||||||
version=0.141
|
version=0.141
|
||||||
revision=5
|
revision=6
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
depends="xbps-triggers"
|
depends="xbps-triggers"
|
||||||
short_desc="Void Linux base system files"
|
short_desc="Void Linux base system files"
|
||||||
|
|
Loading…
Reference in New Issue