<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Change hostname or Server name of a Linux Machine</title>
	<atom:link href="http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html</link>
	<description>Debian/Ubuntu Linux System Administration Tutorials,Howtos,Tips</description>
	<lastBuildDate>Thu, 18 Mar 2010 05:59:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Hypnosis</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-4585</link>
		<dc:creator>Hypnosis</dc:creator>
		<pubDate>Mon, 08 Mar 2010 14:49:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-4585</guid>
		<description>thanks so very much, had the same idea! btw great site (i love the designing!)</description>
		<content:encoded><![CDATA[<p>thanks so very much, had the same idea! btw great site (i love the designing!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: felipe1982</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-4498</link>
		<dc:creator>felipe1982</dc:creator>
		<pubDate>Sun, 28 Feb 2010 11:46:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-4498</guid>
		<description>need to change DOMAIN NAME (not hostname). How can I do this?

Mine reads: hostname..domain.tld (i added &#039;two dots&#039; by mistake during install)</description>
		<content:encoded><![CDATA[<p>need to change DOMAIN NAME (not hostname). How can I do this?</p>
<p>Mine reads: hostname..domain.tld (i added &#8216;two dots&#8217; by mistake during install)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vivek</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-4370</link>
		<dc:creator>Vivek</dc:creator>
		<pubDate>Wed, 03 Feb 2010 18:06:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-4370</guid>
		<description>Hi,
Can two machines in the same network have same hostname with different IPs. If so, how ping  is resolved.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Can two machines in the same network have same hostname with different IPs. If so, how ping  is resolved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tec4ua</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-4230</link>
		<dc:creator>Tec4ua</dc:creator>
		<pubDate>Tue, 29 Dec 2009 12:28:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-4230</guid>
		<description>hi,

thanks for nice and useful info</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>thanks for nice and useful info</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: artm</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-4061</link>
		<dc:creator>artm</dc:creator>
		<pubDate>Wed, 25 Nov 2009 10:42:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-4061</guid>
		<description>oops, the filenames should be space separated or &lt;code&gt;/etc/{hostname,hosts,mailname,exim4/update-exim4.conf.conf}&lt;/code&gt;. And &quot;bin&quot; shoudn&#039;t be Bin.</description>
		<content:encoded><![CDATA[<p>oops, the filenames should be space separated or <code>/etc/{hostname,hosts,mailname,exim4/update-exim4.conf.conf}</code>. And &#8220;bin&#8221; shoudn&#8217;t be Bin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: artm</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-4060</link>
		<dc:creator>artm</dc:creator>
		<pubDate>Wed, 25 Nov 2009 10:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-4060</guid>
		<description>hmm... the last command is interactive for no reason. the following is a better script:

&lt;cite&gt;&lt;code&gt;
#!/bin/sh

if [ -z &quot;$1&quot; ] ; then
	exit 1
fi

newname=$1
oldname=$(hostname)

for file in /etc/hostname,/etc/hosts,/etc/mailname,/etc/exim4/update-exim4.conf.conf ; do
	sed s:${oldname}:${newname}:g  ${file}.new &amp;&amp; mv ${file}.new ${file}
done

hostaname ${newname}
&lt;/code&gt;&lt;/cite&gt;</description>
		<content:encoded><![CDATA[<p>hmm&#8230; the last command is interactive for no reason. the following is a better script:</p>
<p><cite><code><br />
#!/bin/sh</p>
<p>if [ -z "$1" ] ; then<br />
	exit 1<br />
fi</p>
<p>newname=$1<br />
oldname=$(hostname)</p>
<p>for file in /etc/hostname,/etc/hosts,/etc/mailname,/etc/exim4/update-exim4.conf.conf ; do<br />
	sed s:${oldname}:${newname}:g  ${file}.new &amp;&amp; mv ${file}.new ${file}<br />
done</p>
<p>hostaname ${newname}<br />
</code></cite></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: artm</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-4059</link>
		<dc:creator>artm</dc:creator>
		<pubDate>Wed, 25 Nov 2009 10:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-4059</guid>
		<description>to summarize: 

&lt;code&gt;
#!/bin/sh
sed s:$(hostname):$1:g  /etc/hosts.new 
mv /etc/hosts.new /etc/hosts
hostaname $1 
hostname &gt; /etc/hostname 
dpkg-reconfigure exim4-config
&lt;/code&gt;

This is a useful script to have on a virtual machine template so you can rename new VMs easily.</description>
		<content:encoded><![CDATA[<p>to summarize: </p>
<p><code><br />
#!/bin/sh<br />
sed s:$(hostname):$1:g  /etc/hosts.new<br />
mv /etc/hosts.new /etc/hosts<br />
hostaname $1<br />
hostname &gt; /etc/hostname<br />
dpkg-reconfigure exim4-config<br />
</code></p>
<p>This is a useful script to have on a virtual machine template so you can rename new VMs easily.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-3264</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 24 Jun 2009 00:12:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-3264</guid>
		<description>thanks for the info.. i edit my network file, hosts file and nw when i run the hostname or hostname -f everything points to new name.. but when i telnet my server it shows the old name... wht would be the problem ?</description>
		<content:encoded><![CDATA[<p>thanks for the info.. i edit my network file, hosts file and nw when i run the hostname or hostname -f everything points to new name.. but when i telnet my server it shows the old name&#8230; wht would be the problem ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek S</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-2594</link>
		<dc:creator>Derek S</dc:creator>
		<pubDate>Sat, 21 Mar 2009 02:03:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-2594</guid>
		<description>By the fully qualified domain name, does that mean like somehting.com or whatever you want the local hostname to be?</description>
		<content:encoded><![CDATA[<p>By the fully qualified domain name, does that mean like somehting.com or whatever you want the local hostname to be?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lone</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-2453</link>
		<dc:creator>lone</dc:creator>
		<pubDate>Fri, 27 Feb 2009 01:26:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-2453</guid>
		<description>Thanks, that is what I am looking for. good note for 
/etc/hostname &amp; /etc/hosts</description>
		<content:encoded><![CDATA[<p>Thanks, that is what I am looking for. good note for<br />
/etc/hostname &amp; /etc/hosts</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WANA</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-153</link>
		<dc:creator>WANA</dc:creator>
		<pubDate>Sun, 21 Dec 2008 17:40:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-153</guid>
		<description>The mailname serves a different purpose from that of hostname but in many
cases their values are the same. For /etc/mailname, dpkg-reconfigure exim4-config should do it.</description>
		<content:encoded><![CDATA[<p>The mailname serves a different purpose from that of hostname but in many<br />
cases their values are the same. For /etc/mailname, dpkg-reconfigure exim4-config should do it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-154</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Sat, 20 Dec 2008 07:01:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-154</guid>
		<description>also need to change /etc/mailname to the new name.</description>
		<content:encoded><![CDATA[<p>also need to change /etc/mailname to the new name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flavus</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-152</link>
		<dc:creator>Flavus</dc:creator>
		<pubDate>Thu, 06 Nov 2008 16:58:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-152</guid>
		<description>Thanks, that what i was looking for.</description>
		<content:encoded><![CDATA[<p>Thanks, that what i was looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-151</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Mon, 29 Sep 2008 16:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-151</guid>
		<description>Just what I needed :)
Thanks for this great post!</description>
		<content:encoded><![CDATA[<p>Just what I needed <img src='http://www.debianadmin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Thanks for this great post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raymond Day</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-150</link>
		<dc:creator>Raymond Day</dc:creator>
		<pubDate>Thu, 07 Aug 2008 09:25:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-150</guid>
		<description>You have to edit the /etc/host file too. Not just /etc/hostname.

-Raymond Day</description>
		<content:encoded><![CDATA[<p>You have to edit the /etc/host file too. Not just /etc/hostname.</p>
<p>-Raymond Day</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-149</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Sun, 27 Jul 2008 13:54:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-149</guid>
		<description>My question is should you put the whole FQDN in the hostname file for a permanent change, or just the hostname itself?</description>
		<content:encoded><![CDATA[<p>My question is should you put the whole FQDN in the hostname file for a permanent change, or just the hostname itself?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: platypusjh</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-148</link>
		<dc:creator>platypusjh</dc:creator>
		<pubDate>Sun, 13 Jul 2008 18:54:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-148</guid>
		<description>Nope. It&#039;s &quot;hostname --fqdn&quot; or &quot;hostname -f&quot;

Sorry, couldn&#039;t resist since everyone else was nitpicking. :)

Thanks for the excellent article. Worked like a charm!</description>
		<content:encoded><![CDATA[<p>Nope. It&#8217;s &#8220;hostname --fqdn&#8221; or &#8220;hostname -f&#8221;</p>
<p>Sorry, couldn&#8217;t resist since everyone else was nitpicking. <img src='http://www.debianadmin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks for the excellent article. Worked like a charm!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cmos</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-147</link>
		<dc:creator>cmos</dc:creator>
		<pubDate>Mon, 07 Jul 2008 18:26:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-147</guid>
		<description>I think that should be hostname --fqdn</description>
		<content:encoded><![CDATA[<p>I think that should be hostname --fqdn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jam</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-146</link>
		<dc:creator>jam</dc:creator>
		<pubDate>Fri, 13 Jun 2008 13:25:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-146</guid>
		<description>hostname -fqd didn&#039;t work...
I think it should jsut be hostname -f ?

I may be wrong though..
But thanks :D

JAM</description>
		<content:encoded><![CDATA[<p>hostname -fqd didn&#8217;t work&#8230;<br />
I think it should jsut be hostname -f ?</p>
<p>I may be wrong though..<br />
But thanks <img src='http://www.debianadmin.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>JAM</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricky</title>
		<link>http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html/comment-page-1#comment-145</link>
		<dc:creator>Ricky</dc:creator>
		<pubDate>Mon, 21 Jan 2008 16:08:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html#comment-145</guid>
		<description>Thanks... very useful information.</description>
		<content:encoded><![CDATA[<p>Thanks&#8230; very useful information.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
