<?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>Solid State Raam &#187; Ubuntu</title>
	<atom:link href="http://solidstateraam.com/category/linux/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://solidstateraam.com</link>
	<description>Explorations (and exploitations) of the digital world by one of its many netizens.</description>
	<lastBuildDate>Thu, 13 May 2010 19:24:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Configuring Static DNS with DHCP on Debian/Ubuntu</title>
		<link>http://solidstateraam.com/configuring-static-dns-with-dhcp-on-debianubuntu/</link>
		<comments>http://solidstateraam.com/configuring-static-dns-with-dhcp-on-debianubuntu/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 04:53:22 +0000</pubDate>
		<dc:creator>Raam</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://solidstateraam.com/?p=74</guid>
		<description><![CDATA[Dynamic Host Configuration Protocol (DHCP) is a commonly used method of obtaining IP and DNS information automatically from the network. In some cases, you may wish to statically define the DNS servers instead of using the ones provided by the DHCP server. For example if your ISP commonly experiences DNS outages, you might want to [...]]]></description>
			<content:encoded><![CDATA[<p>Dynamic Host Configuration Protocol (<a title="Wikipedia entry on DHCP" href="http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol">DHCP</a>) is a commonly used method of obtaining IP and DNS information automatically from the network. In some cases, you may wish to statically define the DNS servers instead of using the ones provided by the DHCP server. For example if your ISP commonly experiences DNS outages, you might want to use the DNS servers provided by <a title="OpenDNS" href="http://opendns.com">OpenDNS</a> instead of the ones provided by your ISP.</p>
<p>When using a static IP configuration on Linux, you normally add the DNS servers to the <code>/etc/resolv.conf</code>. However, if you try to add a DNS server to <code>/etc/resolv.conf</code> under a DHCP configuration, you&#8217;ll notice that your static entry disappears as soon as the DHCP client runs (usually on boot). To prevent this, you need to tell the DHCP client to prepend the static DNS server(s) to <code>/etc/resolv.conf</code> before adding the ones provided from the DHCP server (if any).</p>
<p>The configuration file you&#8217;ll need to edit is the same on both Debian and Ubuntu, however depending on your setup the location of the file may vary. Here are the two common places I&#8217;ve found the file:</p>
<p><strong>Debian:</strong> <code>/etc/dhclient.conf</code><br />
<strong>Ubuntu:</strong> <code>/etc/dhcp3/dhclient.conf</code></p>
<p>Open the file in your favorite editor and add one of two lines at the top, separating multiple DNS servers with a comma and ending the entry with a semi-colon:</p>
<p>If you simply want to add static DNS servers to be used in addition to the ones provided by DHCP, use a prepend entry:</p>
<pre class="brush: bash;">prepend domain-name-servers 208.67.222.222, 208.67.220.220;</pre>
<p>If you want to override the DNS servers provided by DHCP entirely and force the system to use the ones you provide, use the supersede entry:</p>
<pre class="brush: bash;">supersede domain-name-servers 208.67.222.222, 208.67.220.220;</pre>
<p>Before these static DNS servers will to be appended to your <code>/etc/resolv.conf</code> file, you&#8217;ll need to re-run the DHCP client. The easiest way to do this is by running <code>/etc/init.d/networking restart</code> (sudo required) or you can try running the <code>dhclient</code> command. </p>
<p>After re-running the DHCP client, check your <code>/etc/resolv.conf</code> file to confirm the static DNS servers have been added.</p>
]]></content:encoded>
			<wfw:commentRss>http://solidstateraam.com/configuring-static-dns-with-dhcp-on-debianubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
