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:
Andrew J. Hesford 2021-01-19 11:48:07 -05:00
parent 9fe56619be
commit cc11e17fab
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ passwd: files
group: files
shadow: files
hosts: files mdns mdns4_minimal mdns4 myhostname dns
hosts: files mdns_minimal [NOTFOUND=return] dns mdns
networks: files
protocols: files

View File

@ -1,7 +1,7 @@
# Template file for 'base-files'
pkgname=base-files
version=0.141
revision=5
revision=6
bootstrap=yes
depends="xbps-triggers"
short_desc="Void Linux base system files"