Set Up DD-WRT Router To Use Google DNS/OpenDNS

Google DNS teams up with OpenDNS and some "Content Delivery Networks (CDNs) to attach location data to the DNS requests, so when you request a web page, it will go to a server near you" [1]

Here's how I update the configuration of my DD-WRT'ed Linksys WRT54G-TM to use Google DNS.

  1. Log into your router's dd-wrt web interface.  You can access it using 192.168.1.1 in your browser.
  2. Go to Services tab » Services sub tab » Services Management section » DNSMasq sub section
  3. Enable both DNSMasq and Local DNS options
  4. In the Additional DNSMasq Options text box, enter:
  5. no-resolv
    strict-order
    server=8.8.8.8
    server=8.8.4.4
  6. Click Apply Settings

Reference:
[1]: http://lifehacker.com/5835775/google-dns-and-opendns-users-are-getting-a-web-speed-boost
[2]: http://www.dd-wrt.com/wiki/index.php/OpenDNS
[3]: http://code.google.com/speed/public-dns/docs/using.html