aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/hostname.xml
blob: 902397c43b8665692c084bddd489938ea5475d71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<sect1 id="ch07-hostname">
<title>Configuring the localnet script</title>
<?dbhtml filename="hostname.html" dir="chapter07"?>

<para>Part of the localnet script is setting up the system's hostname. This
needs to be configured in the /etc/sysconfig/network.</para>

<para>Create the /etc/sysconfig/network file and enter a hostname by
running:</para>

<para><screen><userinput>echo "HOSTNAME=lfs" &gt; /etc/sysconfig/network</userinput></screen></para>

<para><quote>lfs</quote> needs to be replaced with the name the computer is 
to be called. You should not enter the FQDN (Fully Qualified Domain
Name) here. That information will be put in the
<filename>/etc/hosts</filename> file later on.</para>

</sect1>