What's new
  • 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!

problems with dnsmasq.conf.add

andresmorago

Senior Member
hello
im sorry for bringing this topic back but im struggling with it and havent been able to find any solution yet.
i have an AC66U running 378.52_2

i wanna redirect dns request for especific websites by using the dnsmasq.conf.add file. i already have created the file at the jffs folder and is also executable. still, those websites are not being redirected through the desired dns.

here is the dnsmasq.conf.add. as you can see, pretty straight forward
Code:
server=/hbogo.com/54.221.207.100
server=/espn.com/54.221.207.100
server=/espn.go.com/54.221.207.100
server=/netflix.com/54.221.207.100
server=/tunlr.com/54.221.207.100
server=/directv.com/54.221.207.100
server=/crackle.com/54.221.207.100
server=/pandora.com/54.221.207.100
server=/comedycentral.com/54.221.207.100

Code:
admin@RT-AC66U-FF48:/jffs/configs# cat /etc/dnsmasq.conf
pid-file=/var/run/dnsmasq.pid
user=nobody
bind-dynamic
interface=br0
interface=ppp1*
no-dhcp-interface=ppp1*
resolv-file=/tmp/resolv.conf
servers-file=/tmp/resolv.dnsmasq
no-poll
no-negcache
cache-size=1500
min-port=4096
dhcp-range=lan,10.0.0.2,10.0.0.254,255.255.255.0,86400s
dhcp-option=lan,3,10.0.0.1
dhcp-option=lan,252,"\n"
dhcp-authoritative
#no-resolv
strict-order
server=/hbogo.com/54.221.207.117
server=/espn.com/54.221.207.100
server=/espn.go.com/54.221.207.100
server=/netflix.com/54.221.207.100
server=/tunlr.com/54.221.207.100
server=/directv.com/54.221.207.100
server=/crackle.com/54.221.207.117
server=/pandora.com/54.221.207.100
server=/comedycentral.com/54.221.207.100
server=/cc.com/54.221.207.100
server=/mtvnservices.com/54.221.207.100

i have manually checked the dns and it works when i set it up directly on my computer.

can you please advise?

thanks!
 
Hi!

Flush DNS cache on clients and make sure there is no any manual DNS settings on clients too. I'm using similar /jffs/configs/dnsmasq.conf.add, it's working.

BTW, there is no need to set executable bit on custom config files.
 
thanks.
just did. none of them get access to the websites. still geo-blocked. also, no manual dns set up is being done
 
How did you create your conf.add file? Are you sure it's in Linux format and doesn't contain embedded <CR> characters?
 
i created with
Code:
nano dnsmasq.conf.add

i think i just fixed. dont know how but apparently resetting the router to default settings did the trick.

thanks for the help!
 
i created with
Code:
nano dnsmasq.conf.add

i think i just fixed. dont know how but apparently resetting the router to default settings did the trick.

thanks for the help!
Remember, when you create or change a dnsmasq.conf.add file to restart dnsmasq:
Code:
service restart_dnsmasq
You can add logging to check if dnsmasq is redirecting correctly in the same file by adding this, change path to file for your environment:
Code:
# Logging
log-facility=/tmp/mnt/sda1/log/dnsmasq.log
log-queries
 
Remember, when you create or change a dnsmasq.conf.add file to restart dnsmasq:
Code:
service restart_dnsmasq
You can add logging to check if dnsmasq is redirecting correctly in the same file by adding this, change path to file for your environment:
Code:
# Logging
log-facility=/tmp/mnt/sda1/log/dnsmasq.log
log-queries
thanks!!
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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