What's new

Adding Unblock-Us DNS using DNSMasq

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Eric, I went back to your firmware because of /jffs/configs/* feature. I had used incron to edit configs and restart daemons before. Now it's all goes seamless. Thank you again.

I was wondering how to use specific DNS rules for certain sites.
Just FYI. I do the same "magic" to use pandora.com outside US:
# cat /jffs/configs/dnsmasq.conf.add

server=/tunlr.net/184.82.222.5
server=/pandora.com/184.82.222.5
server=/hulu.com/184.82.222.5
server=/cbs.com/184.82.222.5
server=/abc.com/go.com/184.82.222.5
server=/mtv.com/mtvnservices.com/184.82.222.5
server=/nbc.com/nbcuni.com/184.82.222.5
server=/fox.com/theplatform.com/184.82.222.5
server=/tv.com/184.82.222.5
server=/pbs.com/184.82.222.5

dhcp-boot=pxelinux.0

I think we may create some "/jffs/scripts/ Best Practice" topic. Is anyone interested? Or is it already repeated a million times here?
 
Last edited:
i using this method provided by jacobno:-

1. Enabele jffs in the router webui and restart.
2. ssh to the router and mkdir /jffs/scripts/
3. vi /jffs/scripts/services-start and paste:

#!/bin/sh
echo "server=/netflix.com/208.122.23.22" >> /tmp/etc/dnsmasq.conf
echo "server=/netflix.com/208.122.23.23" >> /tmp/etc/dnsmasq.conf
killall dnsmasq
dnsmasq -c 1500 --log-async -n

4. save and chmod +x /jffs/scripts/services-start
5. restart router

With other sites added like hulu, pandora, turntable.fm and a few others. But this method only seems to work with 19b when i try to do this with 23b after restarting the router the vi /jffs/scripts/services-start is empty. So i went back to 19b and it works.

I'll give your instructions a go with 23.b ryzhov_al thanks.

Also merlin i found that i cant get as good 2.4ghz wifi speed with 23.b as i do with 19b.
 
Also merlin i found that i cant get as good 2.4ghz wifi speed with 23.b as i do with 19b.

Try toggling the Enhanced Interference Management option. There was no change in the wireless driver between these versions.
 
One more question merlin. Can i save my 19.b settings upgrade to 23.b and use the restore setting function without any issue or is it advised to just set the router up from scratch?
 
One more question merlin. Can i save my 19.b settings upgrade to 23.b and use the restore setting function without any issue or is it advised to just set the router up from scratch?

No need to even save/restore your settings. Just do a straight upgrade to 23b.
 
No need to even save/restore your settings. Just do a straight upgrade to 23b.

Oh cool, i thought when doing a firmware upgrade it was advised to restore to factory settings before doing an upgrade.

If i can go straight to 23b without restoring to factory defaults thats great.
 
Oh cool, i thought when doing a firmware upgrade it was advised to restore to factory settings before doing an upgrade.

If i can go straight to 23b without restoring to factory defaults thats great.

It is usually advised if making a big jump in version (like from 178 to 266), or if you actually run into weird issues that might be caused by some old leftovers. But generally speaking this shouldn't be required, unless specified (like when jumping from a 32 KB to a 64 KB enabled firmware).
 
Eric, I went back to your firmware because of /jffs/configs/* feature. I had used incron to edit configs and restart daemons before. Now it's all goes seamless. Thank you again.

Just FYI. I do the same "magic" to use pandora.com outside US:


I think we may create some "/jffs/scripts/ Best Practice" topic. Is anyone interested? Or is it already repeated a million times here?

I think this would be a good idea too. I'm not very good at ssh'ing into the router and navigating around the folders.

Are there any plans on having a textbox available within asuswrt so that people can enter in their custom dnsmasq easily similar to what Tomato has under their DHCP/DNS server settings?

That being said, this afternoon I think i figured out how to configure the dnsmasq settings I desire for the router. I wanted to use Tunlr for all the sites I'm unable to connect to in Canada.

I'm using firmware 3.0.0.4.266.23 (Merlin build)
Enabled JFFS partition and formatted JFFS partition at next boot.
Rebooted twice.
SSH'd into the router using Terminal.
Navigated to /jffs/configs/ and created a dnsmasq.conf.add file.
pasted everything below:

server=/tunlr.net/142.54.177.158
server=/hulu.com/142.54.177.158
server=/cbs.com/142.54.177.158
server=/abc.com/go.com/142.54.177.158
server=/mtv.com/mtvnservices.com/fwmrm.net/google-analytics.com/imrworldwide.com/demdex.net/scorecardresearch.com/quantserve.com/doubleclick.net/chartbeat.com/142.54.177.158
server=/thewb.com/142.54.177.158
server=/cwtv.com/142.54.177.158
server=/crackle.com/142.54.177.158
server=/nbc.com/video/library/full-episodes//142.54.177.158
server=/fox.com/theplatform.com/akamaihd.net/chartbeat.com/142.54.177.158
server=/tv.com/142.54.177.158
server=/pbs.com/142.54.177.158
server=/vevo.com/fwmrm.net/142.54.177.158
server=/history.com/142.54.177.158
server=/mylifetime.com/scorecardresearch.com/doubleclick.net/rubiconproject.com/cpxinteractive.com/adnxs.com/brightcove.com/cpxadroit.com/atdmt.com/142.54.177.158
server=/logotv.com/142.54.177.158
server=/crunchyroll.com/142.54.177.158
server=/dramafever.com/142.54.177.158
server=/dsc.discovery.com/142.54.177.158
server=/spike.com/142.54.177.158
server=/aetv.com/142.54.177.158
server=/vh1.com/142.54.177.158
server=/pandora.com/142.54.177.158
server=/last.fm/142.54.177.158
server=/lastfm.es/142.54.177.158
server=/iheart.com/142.54.177.158
server=/turntable.fm/142.54.177.158
server=/mog.com/142.54.177.158
server=/rdio.com/142.54.177.158
server=/bbc.co.uk/iplayer/tv/142.54.177.158
server=/itv.com/itvplayer/142.54.177.158
server=/blinkbox.com/142.54.177.158
server=/zattoo.com/142.54.177.158

saved and closed the file.
made the file executable. (chmod a+rx dnsmasq.conf.add)
rebooted the router from the webui
 
In ryzhov_al instructions he put "dhcp-boot=pxelinux.0" this is omitted from iLoveSNB's method.

I was wondering what the significance of this was.
 
Sorry if there is a new thread, stumbled across this when setting up dnsmasq on a Debian box. Not much information on this for Tunlr or UnBlock-US other than the standard sites that work out of the box. /netflix.com/

I took some time and put together a .conf that I load with dnsmasq and now have a good handful of the sites that work with UnBlock-US some may or may not work with Tunlr or other such services if you change the DNS IPs to match but no guarantees.

** Keep in mind if editing
Some of the sites use multiple sources for geolocation and some of sources are from advertising/statistics companies.
Some sites also share multiple geolocation sources.

## Tested/Working
##### Netflix, Hulu, Crackle, Vevo, Turntable.fm, MOG, iHeart, Pandora, CWTV, MTV, FOX, ABC
##### ABC Family, NBC, CBS, TheWB, Channel4, HGTV, FoodNetwork, diyNetwork, Syfy, G4TV, NHL
##### Spike, A&E, VH1, zattoo, PBS, Channel5
#
## Partially Working/Tested
##### TV.com (no account)
##### AdultSwim (change videos a few times and all start working/only site that does this)

Enjoy! ;)
See the attached .txt for configuration file.
 

Attachments

  • dnsmasq.unblock.conf.txt
    4.6 KB · Views: 911
Last edited:
Ok this may very well be a dumb question, but seeing as I don't know what Im doing I wouldn't even know if I was asking a dumb question.

I am trying to get this setup to where my Roku uses the Unblock-Us DNS but have every other device connect to the standard isp DNS. Would I do this in the dnsmasq setup similar to setting up all the various websites that have been discussed here? Something like:

server=/"change this to Roku device somehow"/142.54.177.158

Would I need to first set the roku to a static IP or something? Any help here is appreciated!
 
Ok this may very well be a dumb question, but seeing as I don't know what Im doing I wouldn't even know if I was asking a dumb question.

I am trying to get this setup to where my Roku uses the Unblock-Us DNS but have every other device connect to the standard isp DNS. Would I do this in the dnsmasq setup similar to setting up all the various websites that have been discussed here? Something like:

server=/"change this to Roku device somehow"/142.54.177.158

Would I need to first set the roku to a static IP or something? Any help here is appreciated!

Best thing in that case would be to change the dns settings in the roku box itself
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top