]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/hostname.xml
zsh_completion: Split out zsh _coredumpctl
[thirdparty/systemd.git] / man / hostname.xml
CommitLineData
6a7e63ef
LP
1<?xml version='1.0'?> <!--*-nxml-*-->
2<?xml-stylesheet type="text/xsl" href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"?>
3<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
4 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
5
6<!--
7 This file is part of systemd.
8
9 Copyright 2010 Lennart Poettering
10
11 systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
12 under the terms of the GNU Lesser General Public License as published by
13 the Free Software Foundation; either version 2.1 of the License, or
6a7e63ef
LP
14 (at your option) any later version.
15
16 systemd is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5430f7f2 19 Lesser General Public License for more details.
6a7e63ef 20
5430f7f2 21 You should have received a copy of the GNU Lesser General Public License
6a7e63ef
LP
22 along with systemd; If not, see <http://www.gnu.org/licenses/>.
23-->
24
25<refentry id="hostname">
26 <refentryinfo>
7aa955af 27 <title>hostname</title>
6a7e63ef
LP
28 <productname>systemd</productname>
29
30 <authorgroup>
31 <author>
32 <contrib>Developer</contrib>
33 <firstname>Lennart</firstname>
34 <surname>Poettering</surname>
35 <email>lennart@poettering.net</email>
36 </author>
37 </authorgroup>
38 </refentryinfo>
39
40 <refmeta>
41 <refentrytitle>hostname</refentrytitle>
42 <manvolnum>5</manvolnum>
43 </refmeta>
44
45 <refnamediv>
46 <refname>hostname</refname>
e9dd9f95 47 <refpurpose>Local hostname configuration file</refpurpose>
6a7e63ef
LP
48 </refnamediv>
49
50 <refsynopsisdiv>
51 <para><filename>/etc/hostname</filename></para>
52 </refsynopsisdiv>
53
54 <refsect1>
55 <title>Description</title>
56
57 <para>The <filename>/etc/hostname</filename> file
58 configures the name of the local system that is set
409dee2e 59 during boot using the
6a7e63ef
LP
60 <citerefentry><refentrytitle>sethostname</refentrytitle><manvolnum>2</manvolnum></citerefentry>
61 system call. It should contain a single
e9dd9f95
JSJ
62 newline-terminated hostname string. The
63 hostname may be a free-form string up to 64 characters
64 in length; however, it is recommended that it consists
65 only of 7-bit ASCII lower-case characters and no spaces or dots,
7640a5de 66 and limits itself to the format allowed for DNS domain
6a7e63ef 67 name labels, even though this is not a
7640a5de 68 strict requirement.</para>
6a7e63ef 69
e9dd9f95 70 <para>Depending on the operating system, other
6a7e63ef 71 configuration files might be checked for configuration
e9dd9f95 72 of the hostname as well, however only as fallback.</para>
dbc4fbae
LP
73
74 <para>You may use
75 <citerefentry><refentrytitle>hostnamectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
76 to change the value of this file from the command
77 line.</para>
6a7e63ef
LP
78 </refsect1>
79
80 <refsect1>
81 <title>History</title>
82
83 <para>The simple configuration file format of
84 <filename>/etc/hostname</filename> originates from
85 Debian GNU/Linux.</para>
86 </refsect1>
87
88 <refsect1>
89 <title>See Also</title>
90 <para>
91 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
92 <citerefentry><refentrytitle>sethostname</refentrytitle><manvolnum>2</manvolnum></citerefentry>,
7640a5de 93 <citerefentry><refentrytitle>hostname</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
63c52e45 94 <citerefentry><refentrytitle>hostname</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
7640a5de 95 <citerefentry><refentrytitle>machine-id</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
dbc4fbae
LP
96 <citerefentry><refentrytitle>machine-info</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
97 <citerefentry><refentrytitle>hostnamectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
98 <citerefentry><refentrytitle>systemd-hostnamed.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
6a7e63ef
LP
99 </para>
100 </refsect1>
101
102</refentry>