Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to see Netflix on a Chromecast abroad by tethering and redirecting all DNS traffic in OS X

Chromecast always uses Google's DNS servers so you can't just change DNS server on your local network, you have to redirect all DNS requests to another server. This guide will help you do so with a OS X computer and a phone.

Requirements for this guide:

  • Phone with tethering
  • OS X >=10.9
  • or another DNS resolver


  1. Tethering your computer through your phone, eg. connect to your wifi, and tether with USB.
  2. Change the DNS setting on your computer for the tethered connection to's.
  3. Write /etc/pf.anchors/redirectdns (see below), where en3 is the internet connection (your phone), and is DNS servers.
  4. Modify /etc/pf.conf, as shown below.
  5. Execute sudo pfctl -vf /etc/pf.conf to apply.
  6. Enable Internet sharing in OS X, share the tethering connection over Wifi.
  7. Setup your Chromecast to connect to your computer's wifi.
  8. Goto on your computer and choose a movie, choose "Show on Chromecast".
  9. Enjoy!
# /etc/pf.conf
scrub-anchor "*"
nat-anchor "*"
rdr-anchor "*"
# redirect all dns traffic
rdr-anchor "redirectdns"
load anchor "redirectdns" from "/etc/pf.anchors/redirectdns"
# redirect all dns traffic
dummynet-anchor "*"
anchor "*"
load anchor "" from "/etc/pf.anchors/"
# /etc/pf.anchors/redirectdns
rdr on en3 inet proto udp to any port 53 -> port 53
rdr on en3 inet proto tcp to any port 53 -> port 53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.