1.\" $OpenBSD: myname.5,v 1.11 2020/11/30 19:17:35 jmc Exp $ 2.\" 3.\" Copyright (c) 2003 Jason McIntyre <jmc@openbsd.org> 4.\" 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. 8.\" 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. 16.\" 17.Dd $Mdocdate: November 30 2020 $ 18.Dt MYNAME 5 19.Os 20.Sh NAME 21.Nm myname 22.Nd default hostname 23.Sh DESCRIPTION 24The 25.Nm myname 26file is read by 27.Xr netstart 8 28at system startup time. 29.Pp 30.Pa /etc/myname 31contains the symbolic name of the host machine. 32The file should contain a single line specifying the 33fully qualified domain name 34.Pq FQDN 35of the system 36.Pq e.g. host.example.com . 37The name must be resolvable, either by matching a hostname specified in 38.Pa /etc/hosts 39(see 40.Xr hosts 5 ) 41or through DNS 42(see 43.Xr resolv.conf 5 ) . 44The hostname is set via the 45.Xr hostname 1 46utility at boot time. 47See 48.Xr hostname 7 49for a description of hostname resolution. 50.Pp 51Empty lines and lines beginning with 52.Sq # 53are ignored. 54.Sh FILES 55.Bl -tag -width "/etc/myname" -compact 56.It Pa /etc/myname 57Default hostname. 58.El 59.Sh SEE ALSO 60.Xr hostname 1 , 61.Xr hostname.if 5 , 62.Xr hosts 5 , 63.Xr resolv.conf 5 , 64.Xr hostname 7 , 65.Xr netstart 8 66.Sh HISTORY 67This manual page first appeared in 68.Ox 3.4 . 69