From a2761223a40b5b6baa25a879cf849ea6cd9768c3 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Tue, 19 Jan 2021 11:48:07 -0500 Subject: [PATCH] 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. --- srcpkgs/base-files/files/nsswitch.conf | 2 +- srcpkgs/base-files/template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/base-files/files/nsswitch.conf b/srcpkgs/base-files/files/nsswitch.conf index f933ed02d63..be1d1e00f5c 100644 --- a/srcpkgs/base-files/files/nsswitch.conf +++ b/srcpkgs/base-files/files/nsswitch.conf @@ -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 diff --git a/srcpkgs/base-files/template b/srcpkgs/base-files/template index 2c93efcfd19..fff3ca5afbd 100644 --- a/srcpkgs/base-files/template +++ b/srcpkgs/base-files/template @@ -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"