Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

OpenDNS is almost completely useless with a dynamic ip and most people have dynamic ip addresses.

There isn't even a decent client for Linux to update your IP.

There is a script you can install but it only seems to update on startup and all my child needs to do is unplug and replug the cable from the wall or router and a new ip is created totally killing the opendns service .

I'm not even sure the Mac or windows ip update clients can protect from such a simple maneuver .

How can I get my ip address to constantly update with opendns, is my question. We have several computers connected to the same wireless router. I have entered the correct setup for the router but I need something to update the dynamic ip.

share|improve this question

Edit the dhcp configuration file /etc/dhcp3/dhclient.conf

And add this line:

prepend domain-name-servers,;

This will prepend the OpenDNS nameservers with dynamic IP.

share|improve this answer
That will only make it work for that one computer but I'm trying to set it up for the network. I have already entered those numbers into the router but the problem is , when I want to use the opensns web filtering services, opendns needs to know my ip address . That address changes every time the connection is lost and has to be updated. – Joshua Robison Jun 12 '12 at 15:32
Downvote: this does not answer the question. – ahcox Mar 31 '15 at 15:51
up vote 0 down vote accepted

I believe my question was worded better for my situation but here is the answer to my question.

The answer here by @pl1nk is actually the correct answer for the question at the link posted in this answer.

Confusing I know. It would be great if someone could switch the answers.

Again. The answer to my question is this:

And these are not duplicate questions, as my question is dealing with a home network on a router and this other question is dealing with a single computer.

share|improve this answer
Both links are same. – pl1nk Mar 13 '13 at 14:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.