jmhobbs

Manage Unblock-Us on OS X

Sometimes you need to pretend to be in another country.

VPN's are great for this, but one novel approach is Unblock-Us which changes the location of your DNS server, instead. You use your IP, but you make DNS requests against in-country DNS servers, thus directing you to the application servers supporting that country. There is no anonymity, but you don't have to worry about bandwidth caps, and it's worked for every service I've tried it on.

I use this when I need to access video that is region limited. However, changing your DNS servers through the Mac settings app is a pain when you have to do it over and over again. On Windows they have an app to download which can manage the change for you.

So what I did on my Mac was create a script to use the built in networksetup command to change my DNS as needed.

networksetup -setdnsservers "Wi-Fi" 208.122.23.23 208.122.23.22

And one to un-set it.

networksetup -setdnsservers "Wi-Fi" "Empty"

To top it off, I built a simple Alfred workflow, making it even quicker and cleaner.

Unblock-Us Alfred Workflow

You can download that here: Unblock-Us Alfred Workflow.

Note that if you are using a wired network interface, you'll need to change the service name from "Wi-Fi" to, well, whatever it is you are using.