<?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>狂人山庄 &#124; Silence,声仔,吴洪声,奶罩 &#187; dnspod</title>
	<atom:link href="http://wuhongsheng.com/tag/dnspod/feed/" rel="self" type="application/rss+xml" />
	<link>http://wuhongsheng.com</link>
	<description>响应我党号召,全面建设和谐博客,坚持和谐写博的路线不动摇</description>
	<lastBuildDate>Wed, 04 May 2011 15:13:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>别来无恙</title>
		<link>http://wuhongsheng.com/life/2011/03/hows-going-on/</link>
		<comments>http://wuhongsheng.com/life/2011/03/hows-going-on/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 15:10:49 +0000</pubDate>
		<dc:creator>吴洪声</dc:creator>
				<category><![CDATA[生活]]></category>
		<category><![CDATA[dnspod]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://wuhongsheng.com/?p=429</guid>
		<description><![CDATA[好久没写blog了，报告下情况 DNSPod国际版上线了，历时半年，全新开发，欢迎访问。 最近我一切都好，安好。勿念。 &#160; 随手mark一下：Linux下获取网卡型号的方法 lspci &#124; grep Ethernet No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>好久没写blog了，报告下情况</p>
<ol>
<li><a href="http://www.dnspod.com">DNSPod国际版</a>上线了，历时半年，全新开发，欢迎访问。</li>
<li>最近我一切都好，安好。勿念。</li>
</ol>
<p>&nbsp;</p>
<p>随手mark一下：Linux下获取网卡型号的方法</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">lspci</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> Ethernet</pre></div></div>



<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wuhongsheng.com/life/2011/03/hows-going-on/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>送出几个DNSPod的邀请码</title>
		<link>http://wuhongsheng.com/it/2010/06/dnspod-invitation/</link>
		<comments>http://wuhongsheng.com/it/2010/06/dnspod-invitation/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 06:54:41 +0000</pubDate>
		<dc:creator>吴洪声</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[dnspod]]></category>
		<category><![CDATA[邀请码]]></category>

		<guid isPermaLink="false">http://wuhongsheng.com/?p=394</guid>
		<description><![CDATA[550bb6 ee51d0 57ada9 f23a3c c58264 78fe16 a5cdb6 606f72 b31f06 8e939a No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">
<div id="_mcePaste">550bb6</div>
<div id="_mcePaste">ee51d0</div>
<div id="_mcePaste">57ada9</div>
<div id="_mcePaste">f23a3c</div>
<div id="_mcePaste">c58264</div>
<div id="_mcePaste">78fe16</div>
<div id="_mcePaste">a5cdb6</div>
<div id="_mcePaste">606f72</div>
<div id="_mcePaste">b31f06</div>
<div id="_mcePaste">8e939a</div>
<div></div>
</div>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wuhongsheng.com/it/2010/06/dnspod-invitation/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>终于折腾完，公司顺利开业</title>
		<link>http://wuhongsheng.com/life/2009/11/%e7%bb%88%e4%ba%8e%e6%8a%98%e8%85%be%e5%ae%8c%ef%bc%8c%e5%85%ac%e5%8f%b8%e9%a1%ba%e5%88%a9%e5%bc%80%e4%b8%9a/</link>
		<comments>http://wuhongsheng.com/life/2009/11/%e7%bb%88%e4%ba%8e%e6%8a%98%e8%85%be%e5%ae%8c%ef%bc%8c%e5%85%ac%e5%8f%b8%e9%a1%ba%e5%88%a9%e5%bc%80%e4%b8%9a/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 01:09:16 +0000</pubDate>
		<dc:creator>吴洪声</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[生活]]></category>
		<category><![CDATA[dnspod]]></category>

		<guid isPermaLink="false">http://wuhongsheng.com/?p=352</guid>
		<description><![CDATA[经过前后几个月的折腾，终于把公司注册下来并顺利开业了。DNSPod也终于可以名正言顺。需要感谢的人太多，以后要走的路还很长。 谢谢各位！ No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>经过前后几个月的折腾，终于把公司注册下来并顺利开业了。DNSPod也终于可以名正言顺。需要感谢的人太多，以后要走的路还很长。</p>
<p>谢谢各位！</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wuhongsheng.com/life/2009/11/%e7%bb%88%e4%ba%8e%e6%8a%98%e8%85%be%e5%ae%8c%ef%bc%8c%e5%85%ac%e5%8f%b8%e9%a1%ba%e5%88%a9%e5%bc%80%e4%b8%9a/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>UUCall域名被clientHold</title>
		<link>http://wuhongsheng.com/it/2009/10/uucall-com-clienthold/</link>
		<comments>http://wuhongsheng.com/it/2009/10/uucall-com-clienthold/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 12:28:11 +0000</pubDate>
		<dc:creator>吴洪声</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[clienthold]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dnspod]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[tgbus]]></category>
		<category><![CDATA[uucall]]></category>

		<guid isPermaLink="false">http://wuhongsheng.com/?p=345</guid>
		<description><![CDATA[Domain Name: UUCALL.COM Registrar: BEIJING INNOVATIVE LINKAGE TECHNOLOGY LTD. DBA DNS.COM.CN Whois Server: whois.dns.com.cn Referral URL: http://www.dns.com.cn Name Server: NS1.MYDNSPOD.COM Name Server: NS2.MYDNSPOD.COM Status: clientHold Updated Date: 07-oct-2009 Creation Date: 23-feb-2004 Expiration Date: 23-feb-2010 又是一起国内大型网站的域名被注册商下毒手的事件。这样的事情一而再的警告我们：别在国内注册域名 可怜了，uucall还是DNSPod的VIP用户。不知道这次他们要花多少钱打通关系才能解封域名。TGBus就是一个很好的例子 再次奉劝各位：如果你的网站流量不少，为了你网站着想，请及时把域名转移到国外的注册商 No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>   Domain Name: UUCALL.COM<br />
   Registrar: BEIJING INNOVATIVE LINKAGE TECHNOLOGY LTD. DBA DNS.COM.CN<br />
   Whois Server: whois.dns.com.cn<br />
   Referral URL: http://www.dns.com.cn<br />
   Name Server: NS1.MYDNSPOD.COM<br />
   Name Server: NS2.MYDNSPOD.COM<br />
   Status: clientHold<br />
   Updated Date: 07-oct-2009<br />
   Creation Date: 23-feb-2004<br />
   Expiration Date: 23-feb-2010</p>
<p>又是一起国内大型网站的域名被注册商下毒手的事件。这样的事情一而再的警告我们：别在国内注册域名</p>
<p>可怜了，uucall还是DNSPod的VIP用户。不知道这次他们要花多少钱打通关系才能解封域名。TGBus就是一个<a href="http://wuhongsheng.com/it/2009/02/do-you-still-trust-domestic-domain-registration-agency/">很好的例子</a></p>
<p>再次奉劝各位：如果你的网站流量不少，为了你网站着想，请及时把域名转移到国外的注册商</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wuhongsheng.com/it/2009/10/uucall-com-clienthold/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>平平安安</title>
		<link>http://wuhongsheng.com/life/2009/06/pingpinganan/</link>
		<comments>http://wuhongsheng.com/life/2009/06/pingpinganan/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 08:59:39 +0000</pubDate>
		<dc:creator>吴洪声</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[生活]]></category>
		<category><![CDATA[attack]]></category>
		<category><![CDATA[ddos]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dnspod]]></category>

		<guid isPermaLink="false">http://wuhongsheng.com/?p=301</guid>
		<description><![CDATA[下午新浪科技的记者让我去看新浪科技头条：警方侦破多省网络瘫痪攻击案 抓获4名犯罪嫌疑人。之后给常州市公安局打了电话咨询情况，确认了攻击DNSPod的疑犯已经被抓获。跨省追捕，警察叔叔3天只睡4个小时不到。太累，辛苦他们了。改天请他们喝酒去。 搞攻击的人该警惕了。没有抓不到的人，只有想不想抓。奥运前有一哥们攻击售票网站，用了7层跳板，最后还是被抓到了。 事情完结后，我会把这件事情的经过好好写写。 No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>下午新浪科技的记者让我去看新浪科技头条：<a href="http://tech.sina.com.cn/i/2009-06-02/15573142687.shtml">警方侦破多省网络瘫痪攻击案 抓获4名犯罪嫌疑人</a>。之后给常州市公安局打了电话咨询情况，确认了攻击DNSPod的疑犯已经被抓获。跨省追捕，警察叔叔3天只睡4个小时不到。太累，辛苦他们了。改天请他们喝酒去。</p>
<p>搞攻击的人该警惕了。没有抓不到的人，只有想不想抓。奥运前有一哥们攻击售票网站，用了7层跳板，最后还是被抓到了。</p>
<p>事情完结后，我会把这件事情的经过好好写写。</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wuhongsheng.com/life/2009/06/pingpinganan/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>DNSPod被攻击的致歉信</title>
		<link>http://wuhongsheng.com/life/2009/05/apologize-from-dnspo/</link>
		<comments>http://wuhongsheng.com/life/2009/05/apologize-from-dnspo/#comments</comments>
		<pubDate>Wed, 20 May 2009 11:46:02 +0000</pubDate>
		<dc:creator>吴洪声</dc:creator>
				<category><![CDATA[生活]]></category>
		<category><![CDATA[attack]]></category>
		<category><![CDATA[ddos]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dnspod]]></category>
		<category><![CDATA[攻击]]></category>

		<guid isPermaLink="false">http://wuhongsheng.com/?p=299</guid>
		<description><![CDATA[尊敬的DNSPod会员，您好！ 感谢您一如既往的支持DNSPod。2009年5月18日晚上22点左右，DNSPod主站及多个DNS服务器遭受超过10G流量的恶意攻击，因为已经影响到机房其它客户，稍后便被省电信骨干网封掉了NS的IP，虽然我们及时的更换了IP，但是由于DNS协议限制，DNS更改IP需要最多72才能生效，造成很多用户的域名一直无法解析，记录一直停留在电信骨干封掉的老IP上。为此给各位新老用户造成了很大的损失，在此，我们团队向您表示我们深深的歉意！ 我们一直坚持免费，在智能DNS解析方面，我们一直是公平对待。我们绝不会使用一些卑鄙手段来增加VIP的销量。目前我们已经暂停VIP的销售，以示清白。（VIP目前是内测期，为了保证稳定性，有很高的准入和审核制度，不是花钱就能买） 从这次事件再次给我们敲响了警钟，这是DNSPod建站以来遭受的最大规模攻击，我们计划通过以下两点来提高免费用户的DNS的稳定性。 一，我们将重新部署多台DNS服务器做负载均衡。如NS6不再是一台服务器，而是多台服务器；尽量放在防火墙下。（虽然防火墙的效果微乎其微） 二，从现在开始，我们将大规模封杀包括私服发布站、私服等有争议，易引来攻击的域名。 如果您的网站非常重要，或者您对我们的以上改进还不放心的话。您除了尽量填写6个DNS服务器外，还能做以下操作来确保您解析的稳定。(如果您对我们很有信心，我们同样有信心不会让您失望。) 如：您的网站为：www.dnspod.com 您可以把这个域名的NS服务器放到您认为最稳定最快最好的域名服务商那里，然后把不重要的域名比如:www.mydnspod.com的NS服务器改为 DNSPod的NS服务器，然后把比如:bbs.dnspod.com CNAME到 bbs.mydnspod.com然后在DNSPod上的mydnspod.com这个域名上进行解析。 这样如果一旦DNSPod再次让您失望了。那么您还可以马上把您的主域名的CNAME删除，直接解析到您需要解析的IP，这样的生效时间是很快的。 这样的缺点是因为需要经过二轮解析，会降低DNS解析成功率。 在此，我们再次对本次因为遭受恶意攻击而给您带来的损失表示我们诚挚的歉意，希望您还能一如既往的支持DNSPod。 谢谢！ 奶罩 2009-05-19 晚 No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>尊敬的DNSPod会员，您好！</p>
<p>感谢您一如既往的支持DNSPod。2009年5月18日晚上22点左右，DNSPod主站及多个DNS服务器遭受超过10G流量的恶意攻击，因为已经影响到机房其它客户，稍后便被省电信骨干网封掉了NS的IP，虽然我们及时的更换了IP，但是由于DNS协议限制，DNS更改IP需要最多72才能生效，造成很多用户的域名一直无法解析，记录一直停留在电信骨干封掉的老IP上。为此给各位新老用户造成了很大的损失，在此，我们团队向您表示我们深深的歉意！</p>
<p>我们一直坚持免费，在智能DNS解析方面，我们一直是公平对待。我们绝不会使用一些卑鄙手段来增加VIP的销量。目前我们已经暂停VIP的销售，以示清白。（VIP目前是内测期，为了保证稳定性，有很高的准入和审核制度，不是花钱就能买）</p>
<p>从这次事件再次给我们敲响了警钟，这是DNSPod建站以来遭受的最大规模攻击，我们计划通过以下两点来提高免费用户的DNS的稳定性。<br />
一，我们将重新部署多台DNS服务器做负载均衡。如NS6不再是一台服务器，而是多台服务器；尽量放在防火墙下。（虽然防火墙的效果微乎其微）<br />
二，从现在开始，我们将大规模封杀包括私服发布站、私服等有争议，易引来攻击的域名。</p>
<p>如果您的网站非常重要，或者您对我们的以上改进还不放心的话。您除了尽量填写6个DNS服务器外，还能做以下操作来确保您解析的稳定。(如果您对我们很有信心，我们同样有信心不会让您失望。)</p>
<p>如：您的网站为：www.dnspod.com 您可以把这个域名的NS服务器放到您认为最稳定最快最好的域名服务商那里，然后把不重要的域名比如:www.mydnspod.com的NS服务器改为 DNSPod的NS服务器，然后把比如:bbs.dnspod.com CNAME到 bbs.mydnspod.com然后在DNSPod上的mydnspod.com这个域名上进行解析。</p>
<p>这样如果一旦DNSPod再次让您失望了。那么您还可以马上把您的主域名的CNAME删除，直接解析到您需要解析的IP，这样的生效时间是很快的。<br />
这样的缺点是因为需要经过二轮解析，会降低DNS解析成功率。</p>
<p>在此，我们再次对本次因为遭受恶意攻击而给您带来的损失表示我们诚挚的歉意，希望您还能一如既往的支持DNSPod。</p>
<p>谢谢！</p>
<p>奶罩<br />
2009-05-19 晚 </p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wuhongsheng.com/life/2009/05/apologize-from-dnspo/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>DNSPod再次被大流量攻击</title>
		<link>http://wuhongsheng.com/life/2008/12/dnspod-attacked-again/</link>
		<comments>http://wuhongsheng.com/life/2008/12/dnspod-attacked-again/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 10:51:34 +0000</pubDate>
		<dc:creator>吴洪声</dc:creator>
				<category><![CDATA[生活]]></category>
		<category><![CDATA[attack]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dnspod]]></category>
		<category><![CDATA[hacker]]></category>

		<guid isPermaLink="false">http://wuhongsheng.com/life/2008/12/dnspod-attacked-again/</guid>
		<description><![CDATA[今天（2008-12-10）下午2点左右，DNSPod遭受来路不明的流量攻击，初步统计分布在6个机房的6台服务器一共遭受了将近24G流量的攻击。 上一次DNSPod被如此大的流量攻击已经是06年的时候了。当时攻击的流量是20G，把整个浙江网通和北京网通、电信通都干掉了。网通的总工还特地给我电话找我了解情况。 这次攻击的流量同样打垮了4个机房。 真不明白，什么人能这么看得起我，花这么大的流量攻击一个小小的网站（国内能被10个G以上流量攻击的网站屈指可数）。 做网站能做到我这样，算是圆满了。 （此文为补发） No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>今天（2008-12-10）下午2点左右，DNSPod遭受来路不明的流量攻击，初步统计分布在6个机房的6台服务器一共遭受了将近24G流量的攻击。</p>
<p>上一次DNSPod被如此大的流量攻击已经是06年的时候了。当时攻击的流量是20G，把整个浙江网通和北京网通、电信通都干掉了。网通的总工还特地给我电话找我了解情况。</p>
<p>这次攻击的流量同样打垮了4个机房。</p>
<p>真不明白，什么人能这么看得起我，花这么大的流量攻击一个小小的网站（国内能被10个G以上流量攻击的网站屈指可数）。</p>
<p>做网站能做到我这样，算是圆满了。</p>
<p>（此文为补发）</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wuhongsheng.com/life/2008/12/dnspod-attacked-again/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DNSPod API 调用实例</title>
		<link>http://wuhongsheng.com/life/2008/12/dnspod-api-examples/</link>
		<comments>http://wuhongsheng.com/life/2008/12/dnspod-api-examples/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 03:06:25 +0000</pubDate>
		<dc:creator>吴洪声</dc:creator>
				<category><![CDATA[生活]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dnspod]]></category>

		<guid isPermaLink="false">http://wuhongsheng.com/life/2008/12/dnspod-api-examples/</guid>
		<description><![CDATA[例子代码PHP+CURL 提交请求的函数 function postData&#40;$url, $data&#41; &#123; $data = http_build_query&#40;$data&#41;; &#160; $ch = curl_init&#40;&#41;; curl_setopt&#40;$ch, CURLOPT_URL, $url&#41;; // curl_setopt($ch, CURLOPT_HEADER, 1); // curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt&#40;$ch, CURLOPT_POST, 1&#41;; curl_setopt&#40;$ch, CURLOPT_RETURNTRANSFER, 1&#41;; curl_setopt&#40;$ch, CURLOPT_POSTFIELDS, $data&#41;; &#160; $response = curl_exec&#40;$ch&#41;; curl_close&#40;$ch&#41;; &#160; return $response; &#125; 添加一个新域名 $data = array&#40;'login_email' =&#62; 'foo@bar.com', 'login_password' =&#62; 'password', 'format' =&#62; 'xml', 'domain' [...]


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>例子代码PHP+CURL</p>
<p>提交请求的函数</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> postData<span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #339933;">,</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$data</span>	<span style="color: #339933;">=</span> <span style="color: #990000;">http_build_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$ch</span>	<span style="color: #339933;">=</span> <span style="color: #990000;">curl_init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_URL<span style="color: #339933;">,</span> <span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #666666; font-style: italic;">// curl_setopt($ch, CURLOPT_HEADER, 1);</span>
	<span style="color: #666666; font-style: italic;">// curl_setopt($ch, CURLOPT_VERBOSE, 1);</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_POST<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_RETURNTRANSFER<span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_setopt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #339933;">,</span> CURLOPT_POSTFIELDS<span style="color: #339933;">,</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$response</span>	<span style="color: #339933;">=</span> <span style="color: #990000;">curl_exec</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">curl_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ch</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$response</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>添加一个新域名</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'login_email'</span>		<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'foo@bar.com'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'login_password'</span>	<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'password'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'format'</span>			<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'xml'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'domain'</span>			<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'test.com'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">echo</span> postData<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://www.dnspod.com/API/Domain.Create&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>获取单个域名的记录列表</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'login_email'</span>		<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'foo@bar.com, 
			'</span>login_password<span style="color: #0000ff;">'	=&gt; '</span>password<span style="color: #0000ff;">', 
			'</span>format<span style="color: #0000ff;">'			=&gt; '</span>xml<span style="color: #0000ff;">', 
			'</span>domain_id<span style="color: #0000ff;">'			=&gt; '</span><span style="color: #cc66cc;">123456</span><span style="color: #0000ff;">');
echo postData(&quot;http://www.dnspod.com/API/Record.List&quot;, $data);</span></pre></div></div>

<p>修改一条记录</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'login_email'</span>		<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'foo@bar.com'</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">'login_password'</span>	<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'password'</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">'format'</span>			<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'xml'</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">'domain_id'</span>			<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'123456'</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">'record_id'</span>			<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'7654321'</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">'sub_domain'</span>		<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'test1234'</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">'record_type'</span>		<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'1'</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">'record_line'</span>		<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'1'</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">'value'</span>				<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'127.0.0.1'</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">'mx'</span>				<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'10'</span><span style="color: #339933;">,</span> 
			<span style="color: #0000ff;">'ttl'</span>				<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'3600'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> postData<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://www.dnspod.com/API/Record.Modify&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>



<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wuhongsheng.com/life/2008/12/dnspod-api-examples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DNSPod 开放 API 接口完成</title>
		<link>http://wuhongsheng.com/it/2008/11/finish-dnpsod-api/</link>
		<comments>http://wuhongsheng.com/it/2008/11/finish-dnpsod-api/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 15:11:53 +0000</pubDate>
		<dc:creator>吴洪声</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[dnspod]]></category>

		<guid isPermaLink="false">http://wuhongsheng.com/life/2008/11/finish-dnpsod-api/</guid>
		<description><![CDATA[周末又宅了两天在家里，宅出了成绩：完成了DNSPod的几个开放API接口 目前一共有7个公开API和1个私有的API，基本能满足大部分需求。数据返回支持XML和JSON 7个公开的API： Domain.Create Domain.List Domain.Remove Record.Create Record.List Record.Modify Record.Remove 1个私有的API： User.Create 现在API已经上线，具体的文档将会整理后发出来DNSPod API 列表。 目前使用API不收费。 No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>周末又宅了两天在家里，宅出了成绩：完成了DNSPod的几个开放API接口</p>
<p>目前一共有7个公开API和1个私有的API，基本能满足大部分需求。数据返回支持XML和JSON</p>
<p>7个公开的API：</p>
<p>Domain.Create</p>
<p>Domain.List</p>
<p>Domain.Remove</p>
<p>Record.Create</p>
<p>Record.List</p>
<p>Record.Modify</p>
<p>Record.Remove</p>
<p>1个私有的API：</p>
<p>User.Create</p>
<p>现在API已经上线，<del datetime="2008-11-26T09:03:21+00:00">具体的文档将会整理后发出来</del><a href="http://support.dnspod.com/index.php?_m=knowledgebase&#038;_a=viewarticle&#038;kbarticleid=43">DNSPod API 列表</a>。</p>
<p>目前使用API不收费。</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wuhongsheng.com/it/2008/11/finish-dnpsod-api/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>DNSPod新版本上线啦</title>
		<link>http://wuhongsheng.com/it/2008/05/dnspod-v3-is-now-shipping/</link>
		<comments>http://wuhongsheng.com/it/2008/05/dnspod-v3-is-now-shipping/#comments</comments>
		<pubDate>Sun, 04 May 2008 08:01:59 +0000</pubDate>
		<dc:creator>吴洪声</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dnspod]]></category>

		<guid isPermaLink="false">http://wuhongsheng.com/?p=180</guid>
		<description><![CDATA[新版本从底层到界面完全重写，优化了用户体验，颠覆了传统的dns管理平台，很多功能还在开发中，欢迎大家测试 目前新增加的功能有 1.大量采用了ajax，大量减少用户提交数据时刷新页面的等待时间 2.采用tag方式来展示用户的域名，根据域名的记录条数对域名进行加粗、改变颜色等醒目标记 3.输入一个域名自动判断是新域名需要添加还是旧域名直接进入管理 4.域名输入框采用ajax下拉菜单，用户只需要输入域名某几个字母即可自动填充整个域名。如输入pod自动显示dnspod.com/dnspod.net等带有pod的域名让用户选择 5.支持中文域名 6.支持NS记录 7.支持TXT记录 8.支持域名转出到别的帐号 9.支持域名记录的导出导入，方便批量添加和备份记录（开发中） 10.支持批量修改。如1.1.1.1这台服务器挂了，通过批量修改可以把域名下所有1.1.1.1的记录修改为2.2.2.2 11.支持单条记录的禁用 12.支持域名的自诊断（开发中） 13.还有很多很多新功能等你去发现 No related posts. Related posts brought to you by Yet Another Related Posts Plugin.


No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>新版本从底层到界面完全重写，优化了用户体验，颠覆了传统的dns管理平台，很多功能还在开发中，欢迎大家测试<br />
目前新增加的功能有<br />
1.大量采用了ajax，大量减少用户提交数据时刷新页面的等待时间<br />
2.采用tag方式来展示用户的域名，根据域名的记录条数对域名进行加粗、改变颜色等醒目标记<br />
3.输入一个域名自动判断是新域名需要添加还是旧域名直接进入管理<br />
4.域名输入框采用ajax下拉菜单，用户只需要输入域名某几个字母即可自动填充整个域名。如输入pod自动显示dnspod.com/dnspod.net等带有pod的域名让用户选择<br />
5.支持中文域名<br />
6.支持NS记录<br />
7.支持TXT记录<br />
8.支持域名转出到别的帐号<br />
9.支持域名记录的导出导入，方便批量添加和备份记录（开发中）<br />
10.支持批量修改。如1.1.1.1这台服务器挂了，通过批量修改可以把域名下所有1.1.1.1的记录修改为2.2.2.2<br />
11.支持单条记录的禁用<br />
12.支持域名的自诊断（开发中）<br />
13.还有很多很多新功能等你去发现</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://wuhongsheng.com/it/2008/05/dnspod-v3-is-now-shipping/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.382 seconds -->

