This section describes the system’s host information and how to configure them, it covers the following topics:
- Host name
- IP address
A hostname is the label (name) assigned to a network device (a host) on a network and is used to distinguish one device from another on specific networks or over the internet. On the other hand this will be the name which appears on the command line prompt.
A domain name is the label (name) assigned to a computer network and is thus unique. VyOS appends the domain name as a suffix to any unqualified name. For example, if you set the domain name example.com, and you would ping the unqualified name of crux, then VyOS qualifies the name to crux.example.com.
Static Hostname Mapping¶
How an IP address is assigned to an interface in Ethernet. This section shows how to statically map an IP address to a hostname for local (meaning on this VyOS instance) name resolution.
Create named <alias> for the configured static mapping for <hostname>.
Thus the address configured as
set system static-host-mapping
host-name <hostname> inet <address> can be reached via multiple names.
Multiple aliases can pe specified per host-name.