Merge pull request #922 from b-/patch-1

add reference to /etc/hosts
This commit is contained in:
Robert Göhler 2023-01-15 21:24:32 +01:00 committed by GitHub
commit 83b68ccc33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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