summaryrefslogtreecommitdiff
path: root/docs/configuration
diff options
context:
space:
mode:
authorRobert Göhler <github@ghlr.de>2023-01-15 21:24:32 +0100
committerGitHub <noreply@github.com>2023-01-15 21:24:32 +0100
commit83b68ccc33c01d19c89ff9315658ff4da31d0625 (patch)
treee7fe1f041e35045824fa524abb3cc11f2166434b /docs/configuration
parent191e73e1d69bc844be8e06531f23f1af6666d36f (diff)
parentd986618b8f41065c90950a207587d8109e2a525b (diff)
downloadvyos-documentation-83b68ccc33c01d19c89ff9315658ff4da31d0625.tar.gz
vyos-documentation-83b68ccc33c01d19c89ff9315658ff4da31d0625.zip
Merge pull request #922 from b-/patch-1
add reference to /etc/hosts
Diffstat (limited to 'docs/configuration')
-rw-r--r--docs/configuration/system/host-name.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/configuration/system/host-name.rst b/docs/configuration/system/host-name.rst
index 79fae851..d062fc62 100644
--- a/docs/configuration/system/host-name.rst
+++ b/docs/configuration/system/host-name.rst
@@ -46,7 +46,12 @@ Static Hostname Mapping
How an IP address is assigned to an interface in :ref:`ethernet-interface`.
This section shows how to statically map an IP address to a hostname for local
-(meaning on this VyOS instance) name resolution.
+(meaning on this VyOS instance) name resolution. This is the VyOS equivalent to
+`/etc/hosts` file entries.
+
+.. note:: Do *not* manually edit `/etc/hosts`. This file will automatically be
+ regenerated on boot based on the settings in this section, which means you'll
+ lose all your manual edits. Instead, configure static host mappings as follows.
.. cfgcmd:: set system static-host-mapping host-name <hostname> inet <address>