diff options
author | Robert Göhler <github@ghlr.de> | 2023-01-15 21:24:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-15 21:24:32 +0100 |
commit | 83b68ccc33c01d19c89ff9315658ff4da31d0625 (patch) | |
tree | e7fe1f041e35045824fa524abb3cc11f2166434b /docs | |
parent | 191e73e1d69bc844be8e06531f23f1af6666d36f (diff) | |
parent | d986618b8f41065c90950a207587d8109e2a525b (diff) | |
download | vyos-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')
-rw-r--r-- | docs/configuration/system/host-name.rst | 7 |
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> |