From 946f7ce32cef44d9bfcf2dc594bb193341434f57 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 17 Jul 2021 19:49:42 +0200 Subject: [PATCH] man: document nss-{resolve,myhostname} resolving in the other direction, too --- man/nss-myhostname.xml | 7 ++++++- man/nss-resolve.xml | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/man/nss-myhostname.xml b/man/nss-myhostname.xml index 4a33149a73a..f9d0ff43f43 100644 --- a/man/nss-myhostname.xml +++ b/man/nss-myhostname.xml @@ -77,7 +77,12 @@ This resolves well-known hostnames like localhost and the machine hostnames locally. It is consistent with the behaviour of nss-resolve, and still allows overriding via - /etc/hosts. + /etc/hosts. + + Please keep in mind that nss-myhostname (and nss-resolve) 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. diff --git a/man/nss-resolve.xml b/man/nss-resolve.xml index 97c3768100b..4f9e1f9c5a5 100644 --- a/man/nss-resolve.xml +++ b/man/nss-resolve.xml @@ -52,6 +52,12 @@ it is still recommended (see examples below) to keep nss-myhostname configured in /etc/nsswitch.conf, to keep those names resolveable if systemd-resolved is not running. + + Please keep in mind that nss-myhostname (and nss-resolve) 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. +