diff options
author | rebortg <github@ghlr.de> | 2023-02-15 08:35:29 +0100 |
---|---|---|
committer | rebortg <github@ghlr.de> | 2023-02-15 08:35:42 +0100 |
commit | c8dfc89b073a4e12b6380ac1989afdb509527bf3 (patch) | |
tree | 38b3a951df1567a48bfc0b85aca41170d2ab5e3f /docs/configuration/system | |
parent | 6a11ba4a05b9ea22c4472572aea27051ecd495d3 (diff) | |
download | vyos-documentation-c8dfc89b073a4e12b6380ac1989afdb509527bf3.tar.gz vyos-documentation-c8dfc89b073a4e12b6380ac1989afdb509527bf3.zip |
console: sync branches
Diffstat (limited to 'docs/configuration/system')
-rw-r--r-- | docs/configuration/system/host-name.rst | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/configuration/system/host-name.rst b/docs/configuration/system/host-name.rst index 30efe01e..d062fc62 100644 --- a/docs/configuration/system/host-name.rst +++ b/docs/configuration/system/host-name.rst @@ -22,7 +22,7 @@ the command line prompt. .. cfgcmd:: set system host-name <hostname> - Set system hostname. The hostname can be up to 63 characters. A hostname + The hostname can be up to 63 characters. A hostname must start and end with a letter or digit, and have as interior characters only letters, digits, or a hyphen. @@ -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> |