summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2021-07-17 19:49:42 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-07-23 11:59:26 +0200
commitf869a39bceb35406d3193058d6ab5308c2e28f17 (patch)
treeb413e407ba1f6a3d03afc43b72dd2fa43c9051a6
parent21423efc5852194ba3bf2bbc8067258e35c1558d (diff)
downloadsystemd-249.2.tar.gz
man: document nss-{resolve,myhostname} resolving in the other direction, toov249.2
(cherry picked from commit 946f7ce32cef44d9bfcf2dc594bb193341434f57)
-rw-r--r--man/nss-myhostname.xml7
-rw-r--r--man/nss-resolve.xml6
2 files changed, 12 insertions, 1 deletions
diff --git a/man/nss-myhostname.xml b/man/nss-myhostname.xml
index 4a33149a73..f9d0ff43f4 100644
--- a/man/nss-myhostname.xml
+++ b/man/nss-myhostname.xml
@@ -77,7 +77,12 @@
This resolves well-known hostnames like <literal>localhost</literal>
and the machine hostnames locally. It is consistent with the behaviour
of <command>nss-resolve</command>, and still allows overriding via
- <filename>/etc/hosts</filename>.
+ <filename>/etc/hosts</filename>.</para>
+
+ <para>Please keep in mind that <command>nss-myhostname</command> (and <command>nss-resolve</command>) also resolve
+ in the other direction — from locally attached IP adresses to
+ hostnames. If you rely on that lookup being provided by DNS, you might
+ want to order things differently.
</para>
</refsect1>
diff --git a/man/nss-resolve.xml b/man/nss-resolve.xml
index 97c3768100..4f9e1f9c5a 100644
--- a/man/nss-resolve.xml
+++ b/man/nss-resolve.xml
@@ -52,6 +52,12 @@
it is still recommended (see examples below) to keep <command>nss-myhostname</command> configured in
<filename>/etc/nsswitch.conf</filename>, to keep those names resolveable if
<command>systemd-resolved</command> is not running.</para>
+
+ <para>Please keep in mind that <command>nss-myhostname</command> (and <command>nss-resolve</command>) also resolve
+ in the other direction — from locally attached IP adresses to
+ hostnames. If you rely on that lookup being provided by DNS, you might
+ want to order things differently.
+ </para>
</refsect1>
<refsect1>