man: stop recommending putting myhostname after dns
authorFlorian Klink <flokli@flokli.de>
Thu, 1 Jul 2021 20:11:27 +0000 (22:11 +0200)
committerFlorian Klink <flokli@flokli.de>
Thu, 22 Jul 2021 23:53:07 +0000 (01:53 +0200)
commitce266330fc3bd6767451ac3400336cd9acebe9c1
treee8d99268fc78d05f5c0bfe453f57cf0bc3d7ea74
parentb905f3bbba2de0a96a7382492e87ff023598ee23
man: stop recommending putting myhostname after dns

nss-resolve also looks in /etc/hosts, and has the same local hostname
resolving logic as nss-myhostname. We shouldn't recommend another order
than nss-resolve uses internally.

When nss-resolve is used, there's no possibility to override
nss-myhostname hosts via DNS *anyway*.

On top of that, it's not a good idea to allow DNS to override local
hostnames as all - at least not something we should advertise in the
docs.

Followup of f918c67d38ba6ccd4eb0dc657f3f3155e5010cae /
https://github.com/systemd/systemd/pull/16754.
man/nss-myhostname.xml