<?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>Open source blog, linux, php, python, security &#187; dns cache</title>
	<atom:link href="http://www.alonon.net/tag/dns-cache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alonon.net</link>
	<description></description>
	<lastBuildDate>Wed, 18 Aug 2010 20:03:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>

   <image>
    <title>Open source blog, linux, php, python, security</title>
    <url>http://1.gravatar.com/avatar/5152c5736f5f8dd9570ffb2f9068e8ab?s=</url>
    <link>http://www.alonon.net</link>
   </image>
		<item>
		<title>Dns Cache with dnsmasq</title>
		<link>http://www.alonon.net/dns-cache-with-dnsmasq/</link>
		<comments>http://www.alonon.net/dns-cache-with-dnsmasq/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 20:24:11 +0000</pubDate>
		<dc:creator>ALonon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dns cache]]></category>
		<category><![CDATA[dnsmasq]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.alonon.net/?p=137</guid>
		<description><![CDATA[To make a faster browsing , you can use dns cache. To understand why you should use dns cache, you should learn how dns works. With the each client request, dns try to find ip address for domain. Forexample for each you type www.google.com, your browser try to find google.com ips again. Dns cache is &#8230; <a href="http://www.alonon.net/dns-cache-with-dnsmasq/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To make a faster browsing , you can use dns cache.</p>
<p>To understand why you should use dns cache, you should learn how dns works.</p>
<p><img class="aligncenter" title="dns" src="http://www.yourdictionary.com/images/computer/DNS.GIF" alt="" width="348" height="754" /></p>
<p>With the each client request, dns try to find ip address for domain. Forexample for each you type www.google.com, your browser try to find google.com ips again. Dns cache is hold this ip in local, so you can access faster.</p>
<p>I&#8217;m using <a href="http://www.thekelleys.org.uk/dnsmasq/doc.html">dnsmasq</a> , to install in ubuntu.</p>
<blockquote><p>&#8220;sudo apt-get install dnsmasq&#8221;</p></blockquote>
<p>to configure (i&#8217;m using static ip, if you are using a dynamic ip more configuration might have to be done. )</p>
<p>open /etc/dhcp3/dhclient.conf</p>
<blockquote><p>&#8220;vi /etc/dhcp3/dhclient.conf&#8221;</p></blockquote>
<p>change</p>
<blockquote><p>#prepend domain-name-servers 127.0.0.1;</p></blockquote>
<p>with</p>
<blockquote><p>prepend domain-name-servers 127.0.0.1;</p></blockquote>
<p>Example:</p>
<p>dig ebay.com<br />
<span style="color: #999999;"><br />
; &lt;&lt;&gt;&gt; DiG 9.5.1-P2 &lt;&lt;&gt;&gt; ebay.com<br />
;; global options:  printcmd<br />
;; Got answer:<br />
;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 45431<br />
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0</span></p>
<p><span style="color: #888888;">;; QUESTION SECTION:<br />
;ebay.com.            IN    A</span></p>
<p><span style="color: #888888;">;; ANSWER SECTION:<br />
ebay.com.        2330    IN    A    66.211.160.88<br />
ebay.com.        2330    IN    A    66.135.205.13<br />
ebay.com.        2330    IN    A    66.135.205.14<br />
ebay.com.        2330    IN    A    66.135.221.10<br />
ebay.com.        2330    IN    A    66.135.221.11<br />
ebay.com.        2330    IN    A    66.211.160.87</span><br />
<strong><br />
<span style="color: #000000;">;; Query time: 140 msec</span></strong><br />
<span style="color: #888888;">;; SERVER: 127.0.0.1#53(127.0.0.1)<br />
;; WHEN: Sat Sep  5 23:21:51 2009<br />
;; MSG SIZE  rcvd: 122</span></p>
<p>After dns cache:</p>
<p><span style="color: #999999;">dig ebay.com</span></p>
<p><span style="color: #888888;">; &lt;&lt;&gt;&gt; DiG 9.5.1-P2 &lt;&lt;&gt;&gt; ebay.com<br />
;; global options:  printcmd<br />
;; Got answer:<br />
;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 17990<br />
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0</span></p>
<p><span style="color: #888888;">;; QUESTION SECTION:<br />
;ebay.com.            IN    A</span></p>
<p><span style="color: #888888;">;; ANSWER SECTION:<br />
ebay.com.        2327    IN    A    66.211.160.87<br />
ebay.com.        2327    IN    A    66.135.221.11<br />
ebay.com.        2327    IN    A    66.135.221.10<br />
ebay.com.        2327    IN    A    66.135.205.14<br />
ebay.com.        2327    IN    A    66.135.205.13<br />
ebay.com.        2327    IN    A    66.211.160.88</span></p>
<p><strong><span style="color: #000000;">;; Query time: 0 msec</span></strong><span style="color: #888888;"><br />
;; SERVER: 127.0.0.1#53(127.0.0.1)<br />
;; WHEN: Sat Sep  5 23:21:54 2009<br />
;; MSG SIZE  rcvd: 122</span></p>
<p><span style="color: #999999;"><br />
</span></p>

	Tags: <a href="http://www.alonon.net/tag/dns-cache/" title="dns cache" rel="tag">dns cache</a>, <a href="http://www.alonon.net/tag/dnsmasq/" title="dnsmasq" rel="tag">dnsmasq</a>, <a href="http://www.alonon.net/tag/ubuntu/" title="ubuntu" rel="tag">ubuntu</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.alonon.net/user-groups-and-users-in-ubuntu/" title="User groups and Users in Ubuntu (March 16, 2010)">User groups and Users in Ubuntu</a> (0)</li>
	<li><a href="http://www.alonon.net/ubuntu-9-10-karmic-koala-released%e2%80%8e/" title="Ubuntu 9.10, Karmic Koala, released‎ (October 31, 2009)">Ubuntu 9.10, Karmic Koala, released‎</a> (0)</li>
	<li><a href="http://www.alonon.net/server-optimizations-steps-2/" title="Server optimizations 2 (August 13, 2010)">Server optimizations 2</a> (0)</li>
	<li><a href="http://www.alonon.net/install-php-apache-mysql-phpmyadmin/" title="install php apache mysql phpmyadmin (January 1, 2009)">install php apache mysql phpmyadmin</a> (3)</li>
	<li><a href="http://www.alonon.net/how-to-learn-ubuntu-version/" title="How to learn ubuntu version (April 3, 2010)">How to learn ubuntu version</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.alonon.net/dns-cache-with-dnsmasq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
