Skip to content

Instantly share code, notes, and snippets.

Created July 29, 2012 22:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3202101 to your computer and use it in GitHub Desktop.
Save anonymous/3202101 to your computer and use it in GitHub Desktop.
Route DNS through unotelly for BBC Olympics coverage in Ubuntu 12.04
# Proxies like unotelly may send more of your traffic through their service than you would like. You can protect your traffic but still use the tunnel if you only send bbc.co.uk DNS lookups to unotelly.
# Here's how to do this in Ubuntu 12.04. The DNS has changed in 12.04 to use NetworkManager, which makes the process more convoluted than it should be. The below instructions could be improved but it'll get you some BBC Olympics coverage.
$ nslookup bbc.co.uk
# you should see a UK IP e.g. 212.58.241.131
$ vi /etc/NetworkManager/NetworkManager.conf
# comment out dnsmasq
#dns=dnsmasq
# save+quit
$ vi /etc/dhcp/dhclient.conf
prepend domain-name-servers 127.0.0.1;
$ service network-manager restart
# create a new dnsmasq.conf with unotelly California DNS 184.169.139.227 206.214.214.28
# note that server=192.168.11.1 is my router (which handles my upstream DNS) and you'll need to change that IP.
$ vi /etc/dnsmasq.conf
server=/bbc.co.uk/206.214.214.28212.58.241.131
server=/co.uk/206.214.214.28
server=/bbchdsodsecure-f.akamaihd.net/206.214.214.28
server=/bbchdsodsecure-a.akamaihd.net/206.214.214.28
server=/bbchdsodsecure-b.akamaihd.net/206.214.214.28
server=/bbchdsodsecure-c.akamaihd.net/206.214.214.28
server=/bbchdsodsecure-d.akamaihd.net/206.214.214.28
server=/bbchdsodsecure-e.akamaihd.net/206.214.214.28
server=/bbc.co.uk.edgesuite.net/206.214.214.28
server=/bbcfmhds.vo.llnwd.net/206.214.214.28
server=192.168.11.1
# save+quit
$ nohup /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/sendsigs.omit.d/network-manager.dnsmasq.pid --listen-address=127.0.0.1 --conf-file=/etc/dnsmasq.conf --cache-size=0 --proxy-dnssec &
$ tail -f /var/log/syslog
$ nslookup bbc.co.uk
# you should see unotelly proxy servers e.g. uk-cluster.unostructure.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment