<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=How_to_change_the_Hostname_on_Centos</id>
		<title>How to change the Hostname on Centos - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=How_to_change_the_Hostname_on_Centos"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_change_the_Hostname_on_Centos&amp;action=history"/>
		<updated>2026-06-04T10:00:02Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_to_change_the_Hostname_on_Centos&amp;diff=555&amp;oldid=prev</id>
		<title>Brian at 14:42, 14 March 2014</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_change_the_Hostname_on_Centos&amp;diff=555&amp;oldid=prev"/>
				<updated>2014-03-14T14:42:02Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 14:42, 14 March 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 42:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 42:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Now your server is ready to know was your FQDN&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Now your server is ready to know was your FQDN&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Centos]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key briansne_wiki-wiki_:diff:version:1.11a:oldid:239:newid:555 --&gt;
&lt;/table&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_to_change_the_Hostname_on_Centos&amp;diff=239&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;==How to change/adjust the Hostname on Centos==  ===Changing your Hostname on Centos===  I just got a new vps server and the host name was something really shitty like vps2230...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_change_the_Hostname_on_Centos&amp;diff=239&amp;oldid=prev"/>
				<updated>2013-12-07T06:32:16Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==How to change/adjust the Hostname on Centos==  ===Changing your Hostname on Centos===  I just got a new vps server and the host name was something really shitty like vps2230...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==How to change/adjust the Hostname on Centos==&lt;br /&gt;
&lt;br /&gt;
===Changing your Hostname on Centos===&lt;br /&gt;
&lt;br /&gt;
I just got a new vps server and the host name was something really shitty like vps22303_001 and I wanted to change the host name.  In order to change your host name you have to chage the HOSTNAME in your /etc/sysconfig/network file&lt;br /&gt;
&lt;br /&gt;
 vim /etc/sysconfig/network&lt;br /&gt;
&lt;br /&gt;
Now change the HOSTNAME value to your FQDN, it should look like&lt;br /&gt;
&lt;br /&gt;
 HOSTNAME=mail.briansnelson.com&lt;br /&gt;
&lt;br /&gt;
As this was my mail server, that is the FQDN for that server.&lt;br /&gt;
&lt;br /&gt;
Now this hostname will not update until you have rebooted the server.&lt;br /&gt;
&lt;br /&gt;
 reboot&lt;br /&gt;
&lt;br /&gt;
===How to temporarily change your hostname===&lt;br /&gt;
&lt;br /&gt;
Not sure why any one would want to change the hostname temporarily, but you can do this with the hostname command&lt;br /&gt;
&lt;br /&gt;
 hostname mail.briansnelsons.com&lt;br /&gt;
&lt;br /&gt;
To verify that it has changed or view your current hostname run&lt;br /&gt;
&lt;br /&gt;
 hostname&lt;br /&gt;
&lt;br /&gt;
This will show you the current hostname on your server/workstation&lt;br /&gt;
&lt;br /&gt;
Now if you use hostname to change your HOSTNAME, once you reboot it will change to the old value&lt;br /&gt;
&lt;br /&gt;
===Add your FQDN to your hosts file===&lt;br /&gt;
&lt;br /&gt;
Now that you have changed your hostname, you will also want to update your /etc/hosts file.&lt;br /&gt;
&lt;br /&gt;
 echo '127.0.0.1 mail.briansnelson.com' &amp;gt;&amp;gt; /etc/hosts&lt;br /&gt;
&lt;br /&gt;
Now to check the /etc/hosts file to make sure it was added correctly&lt;br /&gt;
&lt;br /&gt;
 cat /etc/hosts&lt;br /&gt;
&lt;br /&gt;
Now your server is ready to know was your FQDN&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>