PeteUKinUSA
New Around Here
Hey folks
I want to do a DNS redirect for Chromecast. Essentially anything 8.8.8.8 needs to get sent to my internal DNS. There's plenty of examples but they're all for when the router is in gateway mode, not AP mode. My understanding is that when the router is in AP mode all the NAT table stuff gets thrown away.
Essentially what I want to happen is something like "if DNS traffic for port 53 to IP 8.8.8.8 is seen coming in on br0, grab it and redirect it to 172.21.0.99". So, what I've got so far is...
iptables -t filter -A OUTPUT -p udp -i br0 -d 8.8.8.8 --dport 53 -j REDIRECT -to-destination 172.21.0.99
Unfortunately it tells me that the IP is a bad argument. Any suggestions ? I'm usually capable of educating myself but this is driving me nuts.
Thanks
Pete
I want to do a DNS redirect for Chromecast. Essentially anything 8.8.8.8 needs to get sent to my internal DNS. There's plenty of examples but they're all for when the router is in gateway mode, not AP mode. My understanding is that when the router is in AP mode all the NAT table stuff gets thrown away.
Essentially what I want to happen is something like "if DNS traffic for port 53 to IP 8.8.8.8 is seen coming in on br0, grab it and redirect it to 172.21.0.99". So, what I've got so far is...
iptables -t filter -A OUTPUT -p udp -i br0 -d 8.8.8.8 --dport 53 -j REDIRECT -to-destination 172.21.0.99
Unfortunately it tells me that the IP is a bad argument. Any suggestions ? I'm usually capable of educating myself but this is driving me nuts.
Thanks
Pete