diff options
author | bri <284789+b-@users.noreply.github.com> | 2023-01-13 14:36:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-13 14:36:58 -0500 |
commit | 2d9c613f01b78c5920d79b88b724fbca8c67eee4 (patch) | |
tree | 2347c22ba88f196b04c5571b16c14b93393084d7 /docs | |
parent | 4f08e26f3d3097d1f8b99b744472209921ca4d6f (diff) | |
download | vyos-documentation-2d9c613f01b78c5920d79b88b724fbca8c67eee4.tar.gz vyos-documentation-2d9c613f01b78c5920d79b88b724fbca8c67eee4.zip |
Update host-name.rst
please don't manually edit /etc/hosts
Diffstat (limited to 'docs')
-rw-r--r-- | docs/configuration/system/host-name.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/configuration/system/host-name.rst b/docs/configuration/system/host-name.rst index 6b3a075f..6915af15 100644 --- a/docs/configuration/system/host-name.rst +++ b/docs/configuration/system/host-name.rst @@ -49,6 +49,10 @@ This section shows how to statically map an IP address to a hostname for local (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> Create a static hostname mapping which will always resolve the name |