<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LinuxHub &#187; Hosts file</title>
	<atom:link href="http://linuxhub.net/tag/hosts-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxhub.net</link>
	<description>Making Linux Simple!</description>
	<lastBuildDate>Tue, 07 Sep 2010 08:22:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to manage hosts in Ubuntu</title>
		<link>http://linuxhub.net/2009/07/how-to-manage-hosts-in-ubuntu/</link>
		<comments>http://linuxhub.net/2009/07/how-to-manage-hosts-in-ubuntu/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 06:18:19 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Hostname]]></category>
		<category><![CDATA[Hosts file]]></category>
		<category><![CDATA[IP address]]></category>
		<category><![CDATA[managing hosts ubuntu]]></category>
		<category><![CDATA[resolving hosts ubuntu]]></category>

		<guid isPermaLink="false">http://linuxhub.net/?p=297</guid>
		<description><![CDATA[Share This one is a quick post on how to manage hosts in Ubuntu. The post is an out come of associating a specific host name to a particular IP address. For example on my college network, we have an internal host namely &#8220;exchange1&#8243; which should resolve to the mail service address of my campus]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button-right"><script type="text/javascript">
			<!-- 
			tweetmeme_url = "http://linuxhub.net/2009/07/how-to-manage-hosts-in-ubuntu/";
			tweetmeme_source = "tweetmeme";
			//-->
		</script>
		<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script></div><div class="socialize-in-button-right"><a name="fb_share" type="box_count" share_url="http://linuxhub.net/2009/07/how-to-manage-hosts-in-ubuntu/" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></div><div class="socialize-in-button-right"><script type="text/javascript"> 
		<!-- 
		digg_url = "http://linuxhub.net/2009/07/how-to-manage-hosts-in-ubuntu/";
		//-->
	</script> 
	<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div></div><p style="text-align: justify;">This one is a quick post on how to manage hosts in Ubuntu. The post is an out come of associating a specific host name to a particular <a class="zem_slink" title="IP address" rel="wikipedia" href="http://en.wikipedia.org/wiki/IP_address">IP address</a>. For example on my college network, we have an internal host namely &#8220;exchange1&#8243; which should resolve to the mail service address of my campus mail server. However, because Ubuntu doesn&#8217;t know what IP it should resolve &#8220;exchange&#8221; to I get the following error.</p>
<p style="text-align: justify;"><img class="alignnone size-full wp-image-298" title="hosts1" src="http://linuxhub.net/wp-content/uploads/2009/07/hosts1.png" alt="hosts1" width="550" height="375" /></p>
<p style="text-align: justify;">How do we let Ubuntu know that a particular host in this case&#8221;exchange1&#8243; should resolve to a specific IP (in this case 15.101.20.1)</p>
<p style="text-align: justify;">1. Drop down to the terminal by hitting ALT+F2 and by typing &#8220;gnome-terminal&#8221;.</p>
<p style="text-align: justify;"><img class="alignnone" title="terminal" src="http://linuxhub.net/wp-content/uploads/2009/07/terminalrun1.png" alt="" width="452" height="218" /></p>
<p style="text-align: justify;">2. At the terminal type the following command</p>
<p style="text-align: justify;">

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts</pre></div></div>

<p style="text-align: justify;">3. The hosts file will open in the editor. Add the <a class="zem_slink" title="Hostname" rel="wikipedia" href="http://en.wikipedia.org/wiki/Hostname">hostname</a> and corresponding IP address. It should look something like this:</p>
<p style="text-align: justify;"><img class="alignnone size-full wp-image-299" title="hosts" src="http://linuxhub.net/wp-content/uploads/2009/07/hosts.png" alt="hosts" width="318" height="239" /></p>
<p style="text-align: justify;">4. Save the file and exit. Now when I type in exchange1 in firefox address bar I am resolved to my campus mail service.</p>
<p style="text-align: justify;">Notice that I am telling to resolve exchange1 to 150.101.20.1 . Accordingly you can setup your own host name resolutions.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=f04a4097-a50e-426d-830d-abf01ed29ba0" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://linuxhub.net/2009/07/how-to-manage-hosts-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
