<?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>XieWenjie&#039;s blog &#187; linux</title>
	<atom:link href="http://xiewenjie.com/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://xiewenjie.com</link>
	<description>Around emacs, linux, etc.</description>
	<lastBuildDate>Sun, 22 May 2011 11:16:50 +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>用adsl时如何使用dnsmasq</title>
		<link>http://xiewenjie.com/2008/10/05/%e7%94%a8adsl%e6%97%b6%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8dnsmasq.html</link>
		<comments>http://xiewenjie.com/2008/10/05/%e7%94%a8adsl%e6%97%b6%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8dnsmasq.html#comments</comments>
		<pubDate>Sun, 05 Oct 2008 12:29:06 +0000</pubDate>
		<dc:creator>Jay Xie</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://jayxie.com/?p=132</guid>
		<description><![CDATA[
前面写过一篇帖子，是关于用dnsmasq做dns缓存的，里面提到的dsl部分采用的是注释掉usepeerdns，这并不是很好用，因为无法获取运营商的dns server 简单的做法是在/etc/ppp/ip-up.d/0000usepeerdns里cat /etc/ppp/resolv.conf前加上一句echo &#8220;nameserver 127.0.0.1&#8243; 把那一段变成这样即可。 # merge the new nameservers with the other options from the old configuration { echo &#34;nameserver 127.0.0.1&#34; cat /etc/ppp/resolv.conf grep --invert-match '^nameserver<a href="">:space:</a>' &#34;$REALRESOLVCONF&#34; &#124;&#124; true } &#62; &#34;$REALRESOLVCONF.tmp&#34;
]]></description>
			<content:encoded><![CDATA[<p>前面写过一篇帖子，是关于用dnsmasq做dns缓存的，里面提到的dsl部分采用的是注释掉usepeerdns，这并不是很好用，因为无法获取运营商的dns server<br />
简单的做法是在/etc/ppp/ip-up.d/0000usepeerdns里cat /etc/ppp/resolv.conf前加上一句echo &#8220;nameserver 127.0.0.1&#8243; 把那一段变成这样即可。</p>
<pre class="brush: bash;">
# merge the new nameservers with the other options from the old configuration
{
  echo &quot;nameserver 127.0.0.1&quot;
  cat /etc/ppp/resolv.conf
  grep --invert-match '^nameserver[[:space:]]' &quot;$REALRESOLVCONF&quot; || true
} &gt; &quot;$REALRESOLVCONF.tmp&quot;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://xiewenjie.com/2008/10/05/%e7%94%a8adsl%e6%97%b6%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8dnsmasq.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

