OpenDNS Fritzbox Howto
While I did some research on how getting this to work I saw many people trying this without success. Here is the definitive guide on how you use OpenDNS with your Fritzbox:
- Make sure your firmware is up-to-date
- Enable telnet
- Login over telnet and type "cd /var/flash/", "nvi ar7.cfg"
- Search for overwritedns1 and overwritedns2 (they appear two times each) using the "/" key and "n" (next search result).
- Press "i" to get into edit mode and enter the opendns server as noted in the opendns linux guide
- ESC brings you back to command mode. ":w" saves the file and ":q" closes the editor again.
- type "reboot" to restart the fritzbox
- Restart you networking and you browser. The OpenDNS Site now should tell you that you are using OpenDNS already. Now you can create an account, set it to dynamic DNS, add network and login to dnsomatic.
- Now login to fritz.box using your browser and enter the following dynamic DNS settings: Update URL: updates.dnsomatic.com/nic/update?myip=<ipaddr>
(This is the URL used by your fritzbox to send the new ip address to DNS-O-Matic)
Domain name: Nothing here.
User name: this should be your username.
Password : your password
password confirmation: you password again.
Comments
Hint: after searching with "/overwrite_dns" and replacing it, just hit n in command mode to go to the next match.
wget http://user:password@updates.dnsomatic.com/nic/update?myip=so.me.ip.add
could do the trick (untested).
http://onlyfreaks.net/wayne/wordpress/?p=8
Essentially, you can access the settings of the FritzBox by using the backup settings function on the web interface (something like "Settings / System / Save settings"). You can then change the corresponding entries in the downloaded text file (change "overwrite_dns1 = 0.0.0.0" to "overwrite_dns1 = 208.67.222.222" and "overwrite_dns2 = 0.0.0.0" to "overwrite_dns2 = 208.67.220.220"; CAREFUL, this must be done twice in the file!) and then restore the changed settings. One last note; you have to add "NoChecks=yes" at the start of the file, otherwise the FritzBox will notice you've made changes and think the file is corrupted and not perform the restore.
Luckily the current Fritzbox beta firmware allows you to specify services manually in the web interface which now works a treat.
Screenshot and instructions in my blog post: http://danonit.blogspot.com.au/2012/06/custom-dns-for-unblock-us-fritzbox-7390.html
Here is a link to the AVM FritzBox FAQ about setting DNS:
Configuring a different DNS server in the FRITZ!Box
In case the URL changes, the short answer is:
1. Open the FritzBox in your browser
2. Change to 'Expert mode'
3. Goto "Internet" > "Account Information" > "DNS Server"