<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://msc.siamtools.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Change_Hostname_Debian</id>
		<title>Change Hostname Debian - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://msc.siamtools.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Change_Hostname_Debian"/>
		<link rel="alternate" type="text/html" href="https://msc.siamtools.com/wiki/index.php?title=Change_Hostname_Debian&amp;action=history"/>
		<updated>2026-05-02T13:13:10Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://msc.siamtools.com/wiki/index.php?title=Change_Hostname_Debian&amp;diff=70&amp;oldid=prev</id>
		<title>Snifer: New page: '''Change the hostname on a running Linux system'''  On any Linux system you can change its hostname with the command ‘''hostname''‘. &lt;pre&gt;# hostname&lt;/pre&gt; without any parameter it wil...</title>
		<link rel="alternate" type="text/html" href="https://msc.siamtools.com/wiki/index.php?title=Change_Hostname_Debian&amp;diff=70&amp;oldid=prev"/>
				<updated>2008-08-09T06:32:14Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;#039;&amp;#039;&amp;#039;Change the hostname on a running Linux system&amp;#039;&amp;#039;&amp;#039;  On any Linux system you can change its hostname with the command ‘&amp;#039;&amp;#039;hostname&amp;#039;&amp;#039;‘. &amp;lt;pre&amp;gt;# hostname&amp;lt;/pre&amp;gt; without any parameter it wil...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Change the hostname on a running Linux system'''&lt;br /&gt;
&lt;br /&gt;
On any Linux system you can change its hostname with the command ‘''hostname''‘.&lt;br /&gt;
&amp;lt;pre&amp;gt;# hostname&amp;lt;/pre&amp;gt;&lt;br /&gt;
without any parameter it will output the current hostname of the system.&lt;br /&gt;
&amp;lt;pre&amp;gt;# hostname –fqd&amp;lt;/pre&amp;gt;&lt;br /&gt;
it will output the fully qualified domain name (or FQDN) of the system.&lt;br /&gt;
&amp;lt;pre&amp;gt;# hostname NEW_NAME&amp;lt;/pre&amp;gt;&lt;br /&gt;
will set the hostname of the system to NEW_NAME. This is active right away and will remain like that until the system will be rebooted (because at system boot it will set this from some particular file configurations - see bellow how to set this permanently). You will most probably need to exit the current shell in order to see the change in your shell prompt.&lt;br /&gt;
&lt;br /&gt;
Permanent hostname change on Debian based Linux systems&lt;br /&gt;
&lt;br /&gt;
Debian based systems use the file /etc/hostname to read the hostname of the system at boot time and set it up using the init script /etc/init.d/hostname.sh&lt;br /&gt;
&amp;lt;pre&amp;gt;# cat /etc/hostname&amp;lt;/pre&amp;gt;&lt;br /&gt;
debianadmin&lt;br /&gt;
&lt;br /&gt;
So on a Debian based system we can edit the file /etc/hostname and change the name of the system and then run&lt;br /&gt;
&lt;br /&gt;
/etc/init.d/hostname.sh startto make the change active. The hostname saved in this file (/etc/hostname) will be preserved on system reboot (and will be set using the same script we used hostname.sh).&lt;br /&gt;
&lt;br /&gt;
If you want more details check hostname man page&lt;br /&gt;
&lt;br /&gt;
Use sysctl to change the hostname&lt;br /&gt;
&lt;br /&gt;
use sysctl to change the variable kernel.hostname:&lt;br /&gt;
&lt;br /&gt;
Use:&lt;br /&gt;
&amp;lt;pre&amp;gt;# sysctl kernel.hostname&amp;lt;/pre&amp;gt;&lt;br /&gt;
to read the current hostname, and&lt;br /&gt;
&amp;lt;pre&amp;gt;# sysctl kernel.hostname=NEW_HOSTNAME&amp;lt;/pre&amp;gt;&lt;br /&gt;
to change it.&lt;br /&gt;
&lt;br /&gt;
If you want more details check sysctl man page&lt;br /&gt;
&lt;br /&gt;
You can use the same process for all debian based distributions and other linux machines&lt;br /&gt;
&lt;br /&gt;
also.&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Snifer</name></author>	</entry>

	</feed>