I need to setup my router to use opendns. It have the latest DDWRT firmware. But I want the router to act as a DNS server so it will cache the queries. I have set the Additional DNSMasq Options as follows :
no-resolv strict-order server=184.108.40.206 server=220.127.116.11
I have set the openDNS server for static dns servers and have added the following firewall rules to the router :
iptables -t nat -A PREROUTING -i br0 -p udp --dport 53 -j DNAT --to $(nvram get lan_ipaddr) iptables -t nat -A PREROUTING -i br0 -p tcp --dport 53 -j DNAT --to $(nvram get lan_ipaddr)
According to this setup, Will the router forward all the dns requests to opendns without caching or will it cache?