default hostname and gateway
files are read by
at system startup
contains the symbolic name of the
host machine. The file should contain a single line specifying the fully
qualified domain name (FQDN) of the system (e.g. host.example.com). The name
must be resolvable, either by matching a hostname specified in
) or through DNS (see
hostname is set via the
utility at boot
time. See hostname(7)
description of hostname resolution.
, if it exists, contains the
address of the gateway host. The gateway is added to the routing tables by the
does not exist, no default
gateway is added to the routing tables. The file may contain gateway addresses
for both IPv4 and IPv6 networks: in dotted quad notation for v4 (e.g.
192.0.2.1) or in colon notation for v6 (e.g. 2001:db8::1). Each address must
be specified on a separate line. If more than one address of a specific family
is found, only the first is used - all other addresses of that family are
is processed after all interfaces
have been configured. If any
contain “dhcp” directives, IPv4 entries in
will be ignored. If they
contain “autoconf” directives, IPv6 entries will be ignored.
Empty lines and lines beginning with ‘#’ in either file are
- Default hostname.
- Default gateway address(es).
This manual page first appeared in OpenBSD 3.4