Let me start by saying that I’m a firm believer in both Ubuntu and OpenDNS. The problem I had was getting OpenDNS setup to correctly identify the IP address assigned by my ISP. I have a WiFi router that doesn’t automatically update OpenDNS, so I needed a way to keep OpenDNS updated when my IP address changes. Keep in mind that in a configuration like this (pretty common) my computer’s IP address is NOT the IP address that OpenDNS needs to identify my computer so scripts running on the computer can’t easily identify the routers external address.
I tried several of the scripts and suggestions I found online but I never got it to work as easily and quickly as I wanted. After giving up on the suggestions, I came up with what I think is a pretty good (and easy) solution! Here’s how I did it….
- Set up a Dns-O-Matic account (https://www.dnsomatic.com/) – this service is provided free of charge by the OpenDNS folks. It automatically updates the dynamic dns services you select (OpenDns, dynDNS, No-IP, ZoneEdit, etc).
- Set up Dns-O-Matic to update your OpenDNS account (they have good instructions on the Dns-O-Matic site).
- Edit your /etc/crontab file.
sudo gedit /etc/crontab
- Add the following line to the file (changing the User and Password to your DNS-O-Matic User Id and Password):
0 5 * * * root wget https://user:email@example.com/nic/update
Now the dynamic Ip address of your router (or your computer if you connect directly) is published to DNS-O-Matic every morning at 5:00 am and DNS-O-Matic publishes that address to all of the dynamic dns services you have set up on your account.
Here are some other resources / methods you might want to try too:
Well, it seems that OpenDNS has an even simpler solution. You don’t even have to register with them to get “Family Shield“. This is basically the full OpenDNS (phishing and adult content filtering) that most people want without the hassle of registering. Simply use these dns servers in your router and you should be golden!
I hope something on this page helps!