Hi
Using OpenDNS servers is easy, just put the IP addresses for the OpenDNS servers in the DNS config.
But that's not what the user is asking, I believe. I use OpenDNS for my DNS servers because my provider intercepts lookups to nonexistent hosts and redirects them to a "help" page. This is nothing less than breaking the intended functionality of DNS, period.
OpenDNS will also take you to a "help" page for lookups to nonexistent hosts, but you can opt-out of this. In order to opt-out, you must authenticate to OpenDNS. The method is almost identical to DynDNS and other services. The original poster is trying to enable a different service, content filtering. But the authentication method is the same. Once your IP address authenticates to OpenDNS, your account configuration controls how DNS lookups are handled.
I have a kludge that works quite well for me, but it won't work for everyone. Here are the caveats for my kludge:
1) You must use PPPoE in OpenWRT to authenticate to your provider. If you use DHCP, this won't work.
2) You must have the "curl" package installed in OpenWRT
Place the short script below into the directory "/etc/ppp/ip-up.d" Name it something like S01opendns:
#!/bin/sh
USER="<USERNAME>"
PASS="<PASSWORD>"
DOMAIN="<HOSTNAME>"
/usr/bin/curl -k -m 60 -u $USER:$PASS https://updates.opendns.com/account/ddns.php?hostname=$DOMAIN > /dev/null
When ever your PPPoE connects to your provider, this script will run and you will authenticate to OpenDNS. I hope someone finds this helpful.
Thanks
(Last edited by gloomrider on 15 Mar 2009, 00:42)