TVNZ Ondemand App behind UnblockUS Service

, posted: 27-Feb-2013 19:39

Recently TVNZ brought out an Ondemand App for IOS.  Whoohoo!!

Happily I downloaded it and gave it a spin but to my dismay nothing would show up.  

I had a thought though, I use the http://www.unblock-us.com  service for accessing overseas media services.  A quick change to my iPhone to set the DNS to my ISPs DNS servers confirmed that this was the problem.

The router I use is a TP-Link WR1043ND - but using the Gargoyle-Router.com firmware (v1.4.7) - in this I have the unblockUS DNS servers which means all traffic is generally sent through them.  They confirmed that TVNZ was not a service they deal wtih and so it was best to not use their DNS servers if trying to access them.

That meant I was up for changing my phones DNS settings everytime I wanted to try using the TVNZ Ondemand app.  

Screw that I thought.

So a bit of googling revealed I should be able to use different DNS servers depending on the client doing the accessing - ok I thought, before stumbling upon being able to use different DNS servers based on the domain trying to be accessed - perfect!!

I'm not entirely sure of the full mechanics of it, but essentially on the router I was able to say, if accessing any domain that contains brightcove.com (the video provider used by TVNZ) then use my Telecom domain servers.

This is done by editing the dnsmasq.conf file in the /etc/ directory of my router.

I went for a pretty broad bruch stroke approach and inserted at the bottom:

# add entries to use telecom DNS servers for brightcove.com domain.
server=/brightcove.com/202.27.158.40
server=/brightcove.com/202.27.156.72

After restarting the router I tried the app and off it went.  

There's a couple of refinements possible, that is defining the servers down to a lower level.  I turned on dnsmap logging:
log-facility=/var/log/dnsmasq.log
log-queries
and this showed the domains being accessed and the name servers being used. 

So your homework dear reader is to try and limit the domains further.  That said, I had a look through BrightCove's customers and the only one I saw was ITV (accessible via UnblockUS) -and it didn't seem to be affected, so I've left mine as it.


Update, based on a commend @bagheera made, I reversed the process, put telecoms DNS servers under my router and used DNSMasq.conf to put all the overseas services to unblock-us.com - see the post at http://www.geekzone.co.nz/davidcole/8355



Other related posts:
The New Age of Online Television
TVNZ Ondemand App behind UnblockUS Service - part II




comments powered by Disqus

davidcole's profile

davidcole Cole
Lower Hutt
New Zealand


Been thinking it would be nice to have a blog but not sure if I have enough to say.

I'm an I.T worker from Wellington New Zealand.

I like my toys so this will probably have posts about my dealings with those.

My Cellphone is an iPhone 5s

I run a NextPVR based PVR at home to replace my video recorder, DVD player and to host all my music. I'm also really big on Plex, for centralising all my music, videos and I've written a plugin or two for it for accessing live TV and for storing recordings with metadata.





TVNZ Ondemand App behind Unblo...
(27-Feb-2013 19:39, 11523 views)
eReceipts - Why don't we have ...
(12-Jan-2012 10:01, 8860 views)
PDF Forms - why you no boxes?...
(26-Jun-2012 09:04, 8040 views)
Free $80 - come and get ur mon...
(20-Sep-2011 13:11, 7668 views)
OpenHAB and Bluetooth beacons ...
(19-Dec-2016 21:39, 7297 views)
Controlling a 12v fan from a r...
(17-Jan-2017 07:49, 7031 views)
Contactless Payments - part 2...
(21-Sep-2011 15:12, 5329 views)
Little Boys and their Sewing M...
(27-Dec-2009 11:09, 5291 views)
TVNZ Ondemand App behind Unblo...
(1-Mar-2013 07:14, 4469 views)
Americans Scare me........
(13-Nov-2008 08:37, 3952 views)