summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2023-07-19 15:04:54 +0200
committerPacho Ramos <pacho@gentoo.org>2023-07-19 15:05:58 +0200
commit8b7a3346b9f5a821d05d51f7ee878aeeac1d7d1d (patch)
treee36568908c3ef96439cd5dad277d1cd0daa017ca /sys-auth/nss-mdns
parentapp-mobilephone/scrcpy: drop 1.25 (diff)
downloadgentoo-8b7a3346b9f5a821d05d51f7ee878aeeac1d7d1d.tar.gz
gentoo-8b7a3346b9f5a821d05d51f7ee878aeeac1d7d1d.tar.bz2
gentoo-8b7a3346b9f5a821d05d51f7ee878aeeac1d7d1d.zip
sys-auth/nss-mdns: clarify how to append mdns to hosts line in nsswitch.conf
Closes: https://bugs.gentoo.org/885903 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'sys-auth/nss-mdns')
-rw-r--r--sys-auth/nss-mdns/nss-mdns-0.15.1.ebuild8
-rw-r--r--sys-auth/nss-mdns/nss-mdns-9999.ebuild8
2 files changed, 8 insertions, 8 deletions
diff --git a/sys-auth/nss-mdns/nss-mdns-0.15.1.ebuild b/sys-auth/nss-mdns/nss-mdns-0.15.1.ebuild
index 6a7a14987621..13fffc2c4aae 100644
--- a/sys-auth/nss-mdns/nss-mdns-0.15.1.ebuild
+++ b/sys-auth/nss-mdns/nss-mdns-0.15.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -46,9 +46,9 @@ pkg_postinst() {
ewarn "minimal (mdns?_minimal) libraries which only lookup .local hosts"
ewarn "and 169.254.x.x addresses."
ewarn
- ewarn "Add the appropriate mdns into the hosts line in /etc/nsswitch.conf."
- ewarn "An example line looks like:"
- ewarn "hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4"
+ ewarn "Add the appropriate mdns into the hosts line in /etc/nsswitch.conf"
+ ewarn "before resolve and dns. An example line looks like:"
+ ewarn "hosts: mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] files myhostname dns"
ewarn
ewarn "If you want to perform mDNS lookups for domains other than the ones"
ewarn "ending in .local, add them to /etc/mdns.allow."
diff --git a/sys-auth/nss-mdns/nss-mdns-9999.ebuild b/sys-auth/nss-mdns/nss-mdns-9999.ebuild
index 532c36ea0f69..14c19990761b 100644
--- a/sys-auth/nss-mdns/nss-mdns-9999.ebuild
+++ b/sys-auth/nss-mdns/nss-mdns-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -53,9 +53,9 @@ pkg_postinst() {
ewarn "minimal (mdns?_minimal) libraries which only lookup .local hosts"
ewarn "and 169.254.x.x addresses."
ewarn
- ewarn "Add the appropriate mdns into the hosts line in /etc/nsswitch.conf."
- ewarn "An example line looks like:"
- ewarn "hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4"
+ ewarn "Add the appropriate mdns into the hosts line in /etc/nsswitch.conf"
+ ewarn "before resolve and dns. An example line looks like:"
+ ewarn "hosts: mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] files myhostname dns"
ewarn
ewarn "If you want to perform mDNS lookups for domains other than the ones"
ewarn "ending in .local, add them to /etc/mdns.allow."