Skip to content

Commit

Permalink
console: sync branches
Browse files Browse the repository at this point in the history
  • Loading branch information
rebortg committed Feb 15, 2023
1 parent 6a11ba4 commit c8dfc89
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/configuration/system/host-name.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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>

Expand Down

0 comments on commit c8dfc89

Please sign in to comment.