From 4f08e26f3d3097d1f8b99b744472209921ca4d6f Mon Sep 17 00:00:00 2001 From: bri <284789+b-@users.noreply.github.com> Date: Fri, 13 Jan 2023 12:10:03 -0500 Subject: add reference to /etc/hosts This mainly for search engine optimization -- it took me too much effort to get the correct results I wanted by searching the Internet for `vyos hosts file` --- docs/configuration/system/host-name.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/configuration') diff --git a/docs/configuration/system/host-name.rst b/docs/configuration/system/host-name.rst index 79fae851..6b3a075f 100644 --- a/docs/configuration/system/host-name.rst +++ b/docs/configuration/system/host-name.rst @@ -46,7 +46,8 @@ 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. .. cfgcmd:: set system static-host-mapping host-name inet
-- cgit v1.2.3 From 2d9c613f01b78c5920d79b88b724fbca8c67eee4 Mon Sep 17 00:00:00 2001 From: bri <284789+b-@users.noreply.github.com> Date: Fri, 13 Jan 2023 14:36:58 -0500 Subject: Update host-name.rst please don't manually edit /etc/hosts --- docs/configuration/system/host-name.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/configuration') 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 inet
Create a static hostname mapping which will always resolve the name -- cgit v1.2.3 From e7de57e75a8b5782eedc68620047ca17d1af6467 Mon Sep 17 00:00:00 2001 From: bri <284789+b-@users.noreply.github.com> Date: Fri, 13 Jan 2023 14:37:59 -0500 Subject: oh, so THAT'S how you rst --- docs/configuration/system/host-name.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/configuration') diff --git a/docs/configuration/system/host-name.rst b/docs/configuration/system/host-name.rst index 6915af15..0afcc9cf 100644 --- a/docs/configuration/system/host-name.rst +++ b/docs/configuration/system/host-name.rst @@ -50,8 +50,8 @@ This section shows how to statically map an IP address to a hostname for local `/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. + 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 inet
-- cgit v1.2.3 From d986618b8f41065c90950a207587d8109e2a525b Mon Sep 17 00:00:00 2001 From: bri <284789+b-@users.noreply.github.com> Date: Fri, 13 Jan 2023 14:43:08 -0500 Subject: removed spurious comma --- docs/configuration/system/host-name.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/configuration') diff --git a/docs/configuration/system/host-name.rst b/docs/configuration/system/host-name.rst index 0afcc9cf..d062fc62 100644 --- a/docs/configuration/system/host-name.rst +++ b/docs/configuration/system/host-name.rst @@ -51,7 +51,7 @@ This section shows how to statically map an IP address to a hostname for local .. 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. + lose all your manual edits. Instead, configure static host mappings as follows. .. cfgcmd:: set system static-host-mapping host-name inet
-- cgit v1.2.3