1 .\" $OpenBSD: myname.5,v 1.6 2007/05/31 19:19:58 jmc Exp $
3 .\" Copyright (c) 2003 Jason McIntyre <jmc@openbsd.org>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .Dd $Mdocdate: May 31 2007 $
22 .Nd default hostname and gateway
33 at system startup time.
36 contains the symbolic name of the host machine.
37 The file should contain a single line specifying the
38 fully qualified domain name
41 .Pq e.g. host.example.com .
42 The name must be resolvable, either by matching a hostname specified in
49 The hostname is set via the
54 for a description of hostname resolution.
58 contains the address of the gateway host.
59 The gateway is added to the routing tables by the
64 does not exist, no default gateway is added to the routing tables.
65 The file may contain gateway addresses for both IPv4 and IPv6 networks:
66 in dotted quad notation for v4
68 or in colon notation for v6
69 .Pq e.g. 2001:1234:5678::1 .
70 Each address must be specified on a separate line.
71 If more than one address of a specific family is found,
72 only the first is used \- all other addresses of that family are ignored.
75 is processed after all interfaces have been configured.
87 IPv6 entries will be ignored.
89 Empty lines and lines beginning with
91 in either file are ignored.
93 .Bl -tag -width "/etc/myname" -compact
97 Default gateway address(es).
108 This manual page first appeared in