Sunday, 1 November 2009

Changing fritzbox 7270 DNS Servers to OpenDNS

Step 1: Enable Telnet access in the Fritz!Box

Dial # 96 * 7 * from a connected telephone to the box. You will hear a short tone, from now on it will be enabled until disabled.

Step 2: Connection to the Fritz!Box

From windows based operating system, a telnet command is available. Use command prompt and type "telnet Fritz!Box" or "telnet 192.168.1.1" assuming its ip of the router. If you can not use this command, use "putty", a utility to connect to the Fritz!Box. Upon successful connection to the box, it will ask for the password for the web interface.

Step 3: Edit Configuration File

After successfully connecting to the box, it shows the console of the Fritz Box. It shows BusyBox running system. First to navigate with "cd / var / flash" in the firmware directory.

Next, you open the editor with the configuration file "nvi ar7.cfg.

Commands:

cd / var / flash
nvi ar7.cfg

NVI is editor command for unix so you are editing configuration file using above commad. In the file search for lines: "overwrite_dns1 = 0.0.0.0;" and "overwrite_dns2 = 0.0.0.0;.

Search command is "/" followed by

These lines must be replaced by the OpenDNS servers. Replace them with: overwrite_dns1 = 208.67.222.222; overwrite_dns2 = 208.67.220.220;

To start edit give NVI command "i"

Note: The entries are found in the file 2 times, you have to replace both. Now you can save the file and exit NVI editor.

:w to save and :q to quit the editor.

Restarting The Fritz!Box by entering reboot command. After the successful reboot new DNS server is used.

Note: If you made a mistake and the configuration file is corrupted and the box is automatically set to factory defaults.

Step 4: Disable Telnet access in the Fritz!Box

Dial "# 96 * 8 *" from the phone connected to Fritz!box to disable the telnet access again.


Disclaimer:
I take no responsibility of any harm if it may cause to your Frtiz!Box.

No comments: