Greetings Fellow Forumites,
I am an avid reader of the forum and a convert of Asuswrt-Merlin.
I am a bit of novice user when it comes to routers(except for the normal GUI tools), telnet, ssh and other shell commands required to really turn your router into more than it seems.
My search skills, along with my comprehension on some of what is required has failed me.
So now I call upon the collective knowledge and expertise of this forum to assist a novice user such as myself.
I currently have a "Chromecast" and a Roku unit - which I would like to use on my home network. Both of these units do not have an option to configure custom dns on the device. I make use of a RT-AC68U as my primary router.
The solution I have seen is to configure custom entries for the dnsmasq. This is now where I would like some assistance if possible.
Please can you assist me in providing me with step by step how to including commands :
- To assist me in getting to the actual location of the dnsmasq. (I've logged onto router via both SSH and Telnet and I end up in the following path - "ASUSWRT-Merlin RT-AC68U_3.0.0.4 Thu Mar 6 02:08:32 UTC 2014
admin@RT-AC68U:/tmp/home/root#")
- To advise me if I should access it via the gui "run cmd" on the web interface of should I use a tool such as putty to telnet or ssh into my device.
- To assist me in adding the "dnsmasq.conf.add" as suggested on the forum here.
- Then to add the following entries in the correct manner :
I thank you in advance for your assistance.
I am an avid reader of the forum and a convert of Asuswrt-Merlin.
I am a bit of novice user when it comes to routers(except for the normal GUI tools), telnet, ssh and other shell commands required to really turn your router into more than it seems.
My search skills, along with my comprehension on some of what is required has failed me.
So now I call upon the collective knowledge and expertise of this forum to assist a novice user such as myself.
I currently have a "Chromecast" and a Roku unit - which I would like to use on my home network. Both of these units do not have an option to configure custom dns on the device. I make use of a RT-AC68U as my primary router.
The solution I have seen is to configure custom entries for the dnsmasq. This is now where I would like some assistance if possible.
Please can you assist me in providing me with step by step how to including commands :
- To assist me in getting to the actual location of the dnsmasq. (I've logged onto router via both SSH and Telnet and I end up in the following path - "ASUSWRT-Merlin RT-AC68U_3.0.0.4 Thu Mar 6 02:08:32 UTC 2014
admin@RT-AC68U:/tmp/home/root#")
- To advise me if I should access it via the gui "run cmd" on the web interface of should I use a tool such as putty to telnet or ssh into my device.
- To assist me in adding the "dnsmasq.conf.add" as suggested on the forum here.
- Then to add the following entries in the correct manner :
iptables -I PREROUTING -t nat -p udp -d 8.8.8.8 -dport 53 -j DNAT –to-destination 206.214.214.28
iptables -I PREROUTING -t nat -p udp -d 8.8.4.4 -dport 53 -j DNAT –to-destination 197.242.94.51
strict-order
server=/netflix.com/206.214.214.28
server=/netflix.com/197.242.94.51
server=/pandora.com/206.214.214.28
server=/pandora.com/197.242.94.51
server=/songza.com/206.214.214.28
server=/songza.com/197.242.94.51
server=/hulu.com/206.214.214.28
server=/hulu.com/197.242.94.51
server=/itv.com/206.214.214.28
server=/itv.com/197.242.94.51
server=/slacker.com/206.214.214.28
server=/slacker.com/197.242.94.51
server=/bbc.co.uk/206.214.214.28
server=/bbc.co.uk/197.242.94.51
server=/ROKU.COM/184.169.139.227
server=/ROKU.COM/50.22.147.234
server=/*ROKU.COM/184.169.139.227
server=/*ROKU.COM/50.22.147.234
IPS=`grep -i "^dhcp-host=.*CHROMECAST" /tmp/dnsmasq.conf | cut -d',' -f3`/32
for SOURCE in $IPS
do
iptables -t nat -A PREROUTING -i br0 -p udp -s $SOURCE --dport 53 -j DNAT --to `nvram get lan_ipaddr`
iptables -t nat -A PREROUTING -i br0 -p tcp -s $SOURCE --dport 53 -j DNAT --to `nvram get lan_ipaddr`
done
I thank you in advance for your assistance.
Last edited: