man: document nss-{resolve,myhostname} resolving in the other direction, too v249.2
authorFlorian Klink <flokli@flokli.de>
Sat, 17 Jul 2021 17:49:42 +0000 (19:49 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 23 Jul 2021 09:59:26 +0000 (11:59 +0200)
(cherry picked from commit 946f7ce32cef44d9bfcf2dc594bb193341434f57)

man/nss-myhostname.xml
man/nss-resolve.xml

index 4a33149a73acfbbeb77a3cf33fcdc1a59dfffed5..f9d0ff43f4399463e07f31b2211c67711c4dd08b 100644 (file)
     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>
 
index 97c3768100bacac9ef1fc51e3ff67f59e2e7a785..4f9e1f9c5a58f27e2702216df5bb0f93ec3ec17f 100644 (file)
     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>