<?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>#raynix# &#187; DNS</title>
	<atom:link href="http://raynix.info/archives/tag/dns/feed" rel="self" type="application/rss+xml" />
	<link>http://raynix.info</link>
	<description>Nothing really matters, love is all we need</description>
	<lastBuildDate>Thu, 09 Sep 2010 04:40:19 +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>本机上的DNS缓冲，只要两步</title>
		<link>http://raynix.info/archives/585</link>
		<comments>http://raynix.info/archives/585#comments</comments>
		<pubDate>Thu, 02 Jul 2009 11:57:02 +0000</pubDate>
		<dc:creator>raynix</dc:creator>
				<category><![CDATA[Free software]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Opensource]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[OpenDNS]]></category>

		<guid isPermaLink="false">http://raynix.cn/?p=585</guid>
		<description><![CDATA[你还在用电信服务商提供给你的DNS服务么？其实只要两步，就可以在自己的电脑上跑起DNS服务来，前提是，你用的是Linux系统（当然Windows下也许也有办法的）。 参考链接：Dnsmasq 第一步：安装dnsmasq。dnsmasq是零配置的一个本地DNS cache程序。 sudo apt-get install dnsmasq 安装完成后，你可以选择修改配置文件； sudo gedit /etc/dnsmasq.conf 如果你是懒人或者生手，那么缺省的或者空白的配置文件已经能够满足你的需求了。 第二步：修改resolv.conf。样本可以是这样的： nameserver 127.0.0.1 nameserver 208.67.222.222 nameserver 208.67.220.220 这样写的原因是，把127.0.0.1放在第一行，这样才保证dnsmasq得到DNS请求并处理；第二、三行的是OpenDNS的两个IP地址，dnsmasq会从这里读取并在没有本地数据的情况下（例如第一次访问某个网站）将DNS请求转发到真正的dns服务。 这样安装就完成了。首先重新启动dnsmasq： sudo /etc/init.d/dnsmasq restart 然后确认dnsmasq在监听DNS端口： sudo netstat -ltp &#124; grep domain 如果结果中有类似这样 tcp        0      0 *:domain                *:*                     LISTEN      28289/dnsmasq 就说明dnsmasq在工作了。下面用浏览器访问一下你收藏的网址吧，是否感到速度快了许多呢？另外一个好处就是你现在更加的independent了，不必看DNS服务商的脸色。 © raynix for #raynix#, 2009. &#124; Permalink &#124; 唉, 一个评论都没 &#124; Add to del.icio.us [...]]]></description>
			<content:encoded><![CDATA[<p>你还在用电信服务商提供给你的DNS服务么？其实只要两步，就可以在自己的电脑上跑起DNS服务来，前提是，你用的是Linux系统（当然Windows下也许也有办法的）。</p>
<p>参考链接：<a title="Click to do a full-text search for this title" rel="nofollow" href="https://help.ubuntu.com/community/Dnsmasq" target="_blank">Dnsmasq</a></p>
<p>第一步：安装dnsmasq。dnsmasq是零配置的一个本地DNS cache程序。</p>
<pre>sudo apt-get install dnsmasq</pre>
<p>安装完成后，你可以<strong>选择</strong>修改配置文件；</p>
<pre>sudo gedit /etc/dnsmasq.conf</pre>
<p>如果你是懒人或者生手，那么缺省的或者空白的配置文件已经能够满足你的需求了。</p>
<p>第二步：修改resolv.conf。样本可以是这样的：</p>
<blockquote><p>nameserver 127.0.0.1<br />
nameserver 208.67.222.222<br />
nameserver 208.67.220.220</p></blockquote>
<p>这样写的原因是，把127.0.0.1放在第一行，这样才保证dnsmasq得到DNS请求并处理；第二、三行的是OpenDNS的两个IP地址，dnsmasq会从这里读取并在没有本地数据的情况下（例如第一次访问某个网站）将DNS请求转发到真正的dns服务。</p>
<p>这样安装就完成了。首先重新启动dnsmasq：</p>
<blockquote><p>sudo /etc/init.d/dnsmasq restart</p></blockquote>
<p>然后确认dnsmasq在监听DNS端口：</p>
<blockquote><p>sudo netstat -ltp | grep domain</p></blockquote>
<p>如果结果中有类似这样</p>
<blockquote><p>tcp        0      0 *:domain                *:*                     LISTEN      28289/dnsmasq</p></blockquote>
<p>就说明dnsmasq在工作了。下面用浏览器访问一下你收藏的网址吧，是否感到速度快了许多呢？另外一个好处就是你现在更加的independent了，不必看DNS服务商的脸色。</p>
<hr />
<p><small>© raynix for <a href="http://raynix.info">#raynix#</a>, 2009. |
<a href="http://raynix.info/archives/585">Permalink</a> |
<a href="http://raynix.info/archives/585#comments">唉, 一个评论都没</a> |
Add to
<a href="http://del.icio.us/post?url=http://raynix.info/archives/585&title=本机上的DNS缓冲，只要两步">del.icio.us</a>
<br/>
Post tags: <a href="http://raynix.info/archives/tag/dns" rel="tag">DNS</a>, <a href="http://raynix.info/archives/tag/linux" rel="tag">linux</a>, <a href="http://raynix.info/archives/tag/opendns" rel="tag">OpenDNS</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://raynix.info/archives/585/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
