man-pages/man5/hostname.5.html
2021-03-31 01:06:50 +01:00

96 lines
2.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of HOSTNAME</TITLE>
</HEAD><BODY>
<H1>HOSTNAME</H1>
Section: hostname (5)<BR>Updated: <BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
hostname - Local hostname configuration file
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<P>
/etc/hostname
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
The
/etc/hostname
file configures the name of the local system that is set during boot using the
<B><A HREF="/cgi-bin/man/man2html?2+sethostname">sethostname</A></B>(2)
system call. It should contain a single newline-terminated hostname string. Comments (lines starting with a `#') are ignored. The hostname may be a free-form string up to 64 characters in length; however, it is recommended that it consists only of 7-bit ASCII lower-case characters and no spaces or dots, and limits itself to the format allowed for DNS domain name labels, even though this is not a strict requirement.
<P>
You may use
<B><A HREF="/cgi-bin/man/man2html?1+hostnamectl">hostnamectl</A></B>(1)
to change the value of this file during runtime from the command line. Use
<B><A HREF="/cgi-bin/man/man2html?1+systemd-firstboot">systemd-firstboot</A></B>(1)
to initialize it on mounted (but not booted) system images.
<A NAME="lbAE">&nbsp;</A>
<H2>HISTORY</H2>
<P>
The simple configuration file format of
/etc/hostname
originates from Debian GNU/Linux.
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>
<P>
<B><A HREF="/cgi-bin/man/man2html?1+systemd">systemd</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?2+sethostname">sethostname</A></B>(2),
<B><A HREF="/cgi-bin/man/man2html?1+hostname">hostname</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?7+hostname">hostname</A></B>(7),
<B><A HREF="/cgi-bin/man/man2html?5+machine-id">machine-id</A></B>(5),
<B><A HREF="/cgi-bin/man/man2html?5+machine-info">machine-info</A></B>(5),
<B><A HREF="/cgi-bin/man/man2html?1+hostnamectl">hostnamectl</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?8+systemd-hostnamed.service">systemd-hostnamed.service</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?1+systemd-firstboot">systemd-firstboot</A></B>(1)
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="4"><A HREF="#lbAE">HISTORY</A><DD>
<DT id="5"><A HREF="#lbAF">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:03 GMT, March 31, 2021
</BODY>
</HTML>