<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: iPhone DNS Servers</title>
	<atom:link href="http://iphone.galloway.me.uk/2009/11/iphone-dns-servers/feed/" rel="self" type="application/rss+xml" />
	<link>http://iphone.galloway.me.uk/2009/11/iphone-dns-servers/</link>
	<description>iPhone Applications</description>
	<lastBuildDate>Mon, 06 Feb 2012 20:55:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: ocean</title>
		<link>http://iphone.galloway.me.uk/2009/11/iphone-dns-servers/comment-page-1/#comment-6831</link>
		<dc:creator>ocean</dc:creator>
		<pubDate>Fri, 11 Mar 2011 03:06:05 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?p=247#comment-6831</guid>
		<description>After upgraded to ios sdk 4.3, this does not work any more:(</description>
		<content:encoded><![CDATA[<p>After upgraded to ios sdk 4.3, this does not work any more:(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Galloway</title>
		<link>http://iphone.galloway.me.uk/2009/11/iphone-dns-servers/comment-page-1/#comment-5318</link>
		<dc:creator>Matt Galloway</dc:creator>
		<pubDate>Mon, 31 Jan 2011 09:18:17 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?p=247#comment-5318</guid>
		<description>@Steve - Thanks for those comments. I&#039;ll take a look when I get a chance. I&#039;ve not been using ares with ipv6 nameservers so haven&#039;t had to worry about it before.</description>
		<content:encoded><![CDATA[<p>@Steve &#8211; Thanks for those comments. I&#8217;ll take a look when I get a chance. I&#8217;ve not been using ares with ipv6 nameservers so haven&#8217;t had to worry about it before.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://iphone.galloway.me.uk/2009/11/iphone-dns-servers/comment-page-1/#comment-5202</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Sat, 29 Jan 2011 06:43:26 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?p=247#comment-5202</guid>
		<description>Thanks, this was very helpful!

Couple of comments:
1. With c-ares v1.7.4 the ares_addr field has a union for ipv4 and ipv6.  So the inside of the loop now needs to be something like


    channel-&gt;servers[i].addr.family = AF_INET;
    memcpy(&amp;channel-&gt;servers[i].addr.addr.addr4, &amp;_res.nsaddr_list[i].sin_addr, sizeof(struct in_addr));

2.  This doesn&#039;t support nameservers which themselves are only accessible via IPv6 addresses.  But the _res field doesn&#039;t seem to support that either (as of iOS 4.2), so I don&#039;t see what can be done about it for now.</description>
		<content:encoded><![CDATA[<p>Thanks, this was very helpful!</p>
<p>Couple of comments:<br />
1. With c-ares v1.7.4 the ares_addr field has a union for ipv4 and ipv6.  So the inside of the loop now needs to be something like</p>
<p>    channel-&gt;servers[i].addr.family = AF_INET;<br />
    memcpy(&amp;channel-&gt;servers[i].addr.addr.addr4, &amp;_res.nsaddr_list[i].sin_addr, sizeof(struct in_addr));</p>
<p>2.  This doesn&#8217;t support nameservers which themselves are only accessible via IPv6 addresses.  But the _res field doesn&#8217;t seem to support that either (as of iOS 4.2), so I don&#8217;t see what can be done about it for now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Galloway</title>
		<link>http://iphone.galloway.me.uk/2009/11/iphone-dns-servers/comment-page-1/#comment-3612</link>
		<dc:creator>Matt Galloway</dc:creator>
		<pubDate>Sun, 05 Dec 2010 17:23:39 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?p=247#comment-3612</guid>
		<description>@Anim - It&#039;s up to you really. Probably easiest to compile ares and add it as a static library to link against, mainly because then you&#039;re using the configure script from the ares project properly.</description>
		<content:encoded><![CDATA[<p>@Anim &#8211; It&#8217;s up to you really. Probably easiest to compile ares and add it as a static library to link against, mainly because then you&#8217;re using the configure script from the ares project properly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anim</title>
		<link>http://iphone.galloway.me.uk/2009/11/iphone-dns-servers/comment-page-1/#comment-3606</link>
		<dc:creator>Anim</dc:creator>
		<pubDate>Sun, 05 Dec 2010 12:02:57 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?p=247#comment-3606</guid>
		<description>as i understand we need to add ares lib to the iphone project.
should i compile ares and then add it or just add the source files?
any good reference of how to use it inside the objective-c?</description>
		<content:encoded><![CDATA[<p>as i understand we need to add ares lib to the iphone project.<br />
should i compile ares and then add it or just add the source files?<br />
any good reference of how to use it inside the objective-c?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luke</title>
		<link>http://iphone.galloway.me.uk/2009/11/iphone-dns-servers/comment-page-1/#comment-3491</link>
		<dc:creator>luke</dc:creator>
		<pubDate>Sun, 28 Nov 2010 14:31:10 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?p=247#comment-3491</guid>
		<description>Nice work.Kudos</description>
		<content:encoded><![CDATA[<p>Nice work.Kudos</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iPhone DNS &#171; Under The Bridge</title>
		<link>http://iphone.galloway.me.uk/2009/11/iphone-dns-servers/comment-page-1/#comment-274</link>
		<dc:creator>iPhone DNS &#171; Under The Bridge</dc:creator>
		<pubDate>Tue, 17 Nov 2009 18:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.galloway.me.uk/?p=247#comment-274</guid>
		<description>[...] there are people out there better informed and/or more tenacious than trolls; so here is a solution using resolv.h that some bright spark who stumbled across our begging on the dev forums came up with, which you [...]</description>
		<content:encoded><![CDATA[<p>[...] there are people out there better informed and/or more tenacious than trolls; so here is a solution using resolv.h that some bright spark who stumbled across our begging on the dev forums came up with, which you [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

