2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2005-12-18 18:31:04 +00:00
|
|
|
|
2004-01-27 22:29:49 +00:00
|
|
|
<sect1 id="ch-scripts-hostname">
|
2005-12-18 18:31:04 +00:00
|
|
|
<?dbhtml filename="hostname.html"?>
|
|
|
|
|
2011-08-02 03:15:42 +01:00
|
|
|
<title>Configuring the system hostname</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2005-12-18 18:31:04 +00:00
|
|
|
<indexterm zone="ch-scripts-hostname">
|
2011-08-02 03:15:42 +01:00
|
|
|
<primary sortas="d-hostname">hostname</primary>
|
2005-12-18 18:31:04 +00:00
|
|
|
<secondary>configuring</secondary>
|
|
|
|
</indexterm>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2005-12-18 18:31:04 +00:00
|
|
|
<para>Part of the job of the <command>localnet</command> script is setting the
|
|
|
|
system's hostname. This needs to be configured in the
|
|
|
|
<filename>/etc/sysconfig/network</filename> file.</para>
|
2002-01-15 21:32:01 +00:00
|
|
|
|
2005-12-18 18:31:04 +00:00
|
|
|
<para>Create the <filename>/etc/sysconfig/network</filename> file and enter a
|
|
|
|
hostname by running:</para>
|
2002-01-15 21:32:01 +00:00
|
|
|
|
2006-04-14 10:37:17 +01:00
|
|
|
<screen><userinput>echo "HOSTNAME=<replaceable><lfs></replaceable>" > /etc/sysconfig/network</userinput></screen>
|
2002-01-15 21:32:01 +00:00
|
|
|
|
2006-04-14 10:37:17 +01:00
|
|
|
<para><replaceable><lfs></replaceable> needs to be replaced with the name given
|
2005-12-18 18:31:04 +00:00
|
|
|
to the computer. Do not enter the Fully Qualified Domain Name (FQDN) here. That
|
2011-08-02 03:15:42 +01:00
|
|
|
information is put in the <filename>/etc/hosts</filename> file.</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2002-01-15 21:32:01 +00:00
|
|
|
</sect1>
|