Hi Everyone,
I want my entire network to use my default DNS. Except for my ROKU wich I want to use Unblock-US.
Would the following script work. (I have reserved the DHCP address for the ROKU so it will always be 192.168.1.14) I feel I might be over complicating what I am trying to do.
Thanks everyone for the help.
I want my entire network to use my default DNS. Except for my ROKU wich I want to use Unblock-US.
Would the following script work. (I have reserved the DHCP address for the ROKU so it will always be 192.168.1.14) I feel I might be over complicating what I am trying to do.
Code:
#!/bin/sh
touch /tmp/000wanstarted
for i in /proc/sys/net/ipv4/conf/*/rp_filter ; do
echo 0 > $i
done
## Force DNS to Unblock-Us
iptables -t nat -I PREROUTING -i br0 -s 192.168.1.114 -p udp --dport 53 -j DNAT --to 208.122.23.22
iptables -t nat -I PREROUTING -i br0 -s 192.168.1.114 -p tcp --dport 53 -j DNAT --to 208.122.23.22
exit 0
Thanks everyone for the help.