<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>chromecast &#8211; Squix &#8211; TechBlog</title>
	<atom:link href="https://blog.squix.org/tag/chromecast/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.squix.org</link>
	<description></description>
	<lastBuildDate>Tue, 13 Dec 2016 20:29:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.8</generator>
<site xmlns="com-wordpress:feed-additions:1">121913304</site>	<item>
		<title>Use proxydns and your dd-wrt router to watch Netflix on Chromecast outside of supported countries</title>
		<link>https://blog.squix.org/2014/05/use-proxydns-and-your-dd-wrt-router-to.html</link>
					<comments>https://blog.squix.org/2014/05/use-proxydns-and-your-dd-wrt-router-to.html#respond</comments>
		
		<dc:creator><![CDATA[Daniel Eichhorn]]></dc:creator>
		<pubDate>Mon, 05 May 2014 17:26:00 +0000</pubDate>
				<category><![CDATA[Common]]></category>
		<category><![CDATA[chromecast]]></category>
		<category><![CDATA[dd-wrt]]></category>
		<category><![CDATA[dnsmasq]]></category>
		<category><![CDATA[netflix]]></category>
		<category><![CDATA[outside us]]></category>
		<guid isPermaLink="false">http://blog.squix.org/2014/05/05/use-proxydns-and-your-dd-wrt-router-to/</guid>

					<description><![CDATA[Sadly tunlr ceased to exist &#8211; so compared to the setup I described here&#160;http://blog.squix.ch/2013/12/use-tunlr-together-with-dnsmasq-on-your.html&#160;I had to find a working solution again. But this time I couldn&#8217;t find a free dns service anymore, but I wanted to find a cheap one at least. It appears that&#160;http://proxydns.co/&#160;does ... <p><a class="read-more btn btn-secondary" href="https://blog.squix.org/2014/05/use-proxydns-and-your-dd-wrt-router-to.html">Read More</a></p>]]></description>
										<content:encoded><![CDATA[<div dir="ltr" style="text-align: left;" trbidi="on">
Sadly tunlr ceased to exist &#8211; so compared to the setup I described here&nbsp;<a href="https://blog.squix.org/2013/12/use-tunlr-together-with-dnsmasq-on-your.html">http://blog.squix.ch/2013/12/use-tunlr-together-with-dnsmasq-on-your.html</a>&nbsp;I had to find a working solution again. But this time I couldn&#8217;t find a free dns service anymore, but I wanted to find a cheap one at least. It appears that&nbsp;<a href="http://proxydns.co/">http://proxydns.co/</a>&nbsp;does a good job and only costs about 3$/month (depending on the price plan you choose), which is slightly lower than the ~ $4.20 that unlocator.com offers for the long term price plan.</p>
<h2 style="text-align: left;">
Prerequisistes</h2>
<p>The following guide assumes that you own a router with a up-to-date DD-WRT installation. It is certainly possible to do this with other router firmware as well. Then you&#8217;ll have to setup an account at http://proxydns.co and make sure that your IP is enabled for this service.</p>
<h2 style="text-align: left;">
Firewall rules</h2>
<p>To get Chromecast running with netflix add this to your firewall script in the Administration &gt; Commands section:</p>
<pre>iptables -t nat -A PREROUTING -d 8.8.8.8 -j DNAT --to-destination 74.207.242.213
iptables -t nat -A PREROUTING -d 8.8.4.4 -j DNAT --to-destination 50.116.28.138</pre>
<pre></pre>
<p>
This will forward all DNS traffic that was intended for the Google Nameservers to the proxydns servers. This is necessary, since the chromecast device ignores what your DHCP server tells it and always uses 8.8.8.8 or 8.8.4.4 for DNS requests.</p>
<h2 style="text-align: left;">
DNSMasq</h2>
<p>Under Services &gt; Services add</p>
<pre>strict-order
server=/tunlr.net/74.207.242.213
server=/hulu.com/74.207.242.213
server=/netflix.com/74.207.242.213
server=/proxydns.co/74.207.242.213
server=/manager.proxydns.co/74.207.242.213
</pre>
<pre></pre>
<p>to the &#8220;Additional DNSMasq Options&#8221;. What was new for me was the &#8220;strict-order&#8221; config attribute. The DNSMasq man page says this:</p>
<pre>By default, dnsmasq will send queries to any of the upstream servers it knows about and tries to favour servers that are known to be up. Setting this flag forces dnsmasq to try each query with each server strictly in the order they appear in /etc/resolv.conf
</pre>
<pre></pre>
<p>Before I had this option watching Netflix would only work from time to time. The other lines only forward DNS requests to proxydns if the are requests for Netflix and similar services.<br />
<br />
You might have to restart all devices after changing these settings. And don&#8217;t forget to check your status at <a href="http://manager.proxydns.co/">http://manager.proxydns.co/</a> to see if the dnsmasq options were applied properly.</p>
<h2>
Explaining the solution</h2>
<p>The here described solution only routes DNS requests to a few specific services to proxydns. Configuration manuals of services like proxydns or unlocator usually tell you to set their DNS server in the general configuration of your router, which would send all DNS requests to them. But that might be very risky, since they would learn about your usage/browsing profile and could potentially even redirect you to&nbsp;malicious servers (instead of routing you your e-banking server, for example). So the less we send there, the better. But this only solves one part of the problem. The other half is Chromecast sending all DNS requests to the Google DNS servers, ignoring what you have setup for your local network and thus bypassing your settings for proxydns. The firewall rules with the iptables commands rewrite all requests for 8.8.8.8 and 8.8.4.4 to the proxydns servers. You could (and maybe should) narrow that down for requests coming from the Chromecast. But I will leave that for a later post;-)</p>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.squix.org/2014/05/use-proxydns-and-your-dd-wrt-router-to.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">78</post-id>	</item>
	</channel>
</rss>
