To make whole home network use OpenDNS I need to change only 3 files on my OpenWRT router.
First step – resolv.conf
Create /etc/resolv.conf.opendns with OpenDNS servers addresses, eg:
nameserver 22.214.171.124 nameserver 126.96.36.199
Make sure /etc/resolv.conf defines 127.0.0.1 as a name server.
Second step – dnsmasq
In /etc/config/dhcp set resolvfile variable:
option resolvfile […]