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

I would like to configure my ubuntu and get the benefits of configuring OpenDNS on my computer

  • is a home computer, with dynamic IP

    1. ¿ What packages I need to install ?
    2. ¿ what configuration is necessary ?


P.S : I'm not asking about how to include OpenDns server in my /etc/resolv.conf....

Possible Problem :

How can I access Windows shares after changing DNS servers (e.g. switching to OpenDNS)?

share|improve this question

The normal way to set it up at home is to just configure your router to use it. How to do this varies by model, but the basic support page for OpenDNS is here, it's a good starting point.

If you still want to just configure your Ubuntu machine to use OpenDNS, their how-to is here.

Good luck.

share|improve this answer
up vote 2 down vote accepted

after some research I can configure it :

  1. create your account in OpenDns.
  2. install ddclient :

ddclient is a Perl based client used to update DNS entries. This client works with all of our services as well as services provided by many of our competitors.

sudo apt-get install ddclient

when it starts to ask for parameters just click next and next ...

  • now we have to configure 2 files, open a terminal and type the following :

sudo nano /etc/default/ddclient

# Configuration for ddclient scripts
# Generated from debconf on Mon Aug 2 12:39:39 CEST 2010
# /Etc/default/ddclient

# Set to "true" if ddclient run Should Be Every time a new ppp connection is
# Established. This Might Be Useful, if You are using dial-on-demand.
run_ipup = "false"

# Set to "true" if ddclient Should run in daemon mode
# If tis is changed to true, run_ipup Must Be Set to false.
run_daemon = "true"

# Set the time interval Between the updates of the dynamic DNS name in seconds.
# This option only Takes effect if the ddclient runs in daemon mode.
daemon_interval = "300"
  • now with the other:

sudo nano /etc/ddclient.conf

# #
# # account-configuration
# #

ssl = yes
use = web, web =

server =
protocol = dyndns2
login = username in OpenDNS                   <-----
password = 'key OpenDNS'                      <----- CHANGE THIS
(Name of the network you set up in OpenDNS)   <----- 
  1. and configure your DNS as describe JE2Tom in his post.
share|improve this answer

Very nice. However, following the tips above, the error occurs for me: "WARNING: unable to determine IP address". To resolve this error, it was only necessary to remove the blank spaces in the options of file.

And to get the IP is better the site:

See below:

sudo nano /etc/ddclient.conf

# #
# # account-configuration
# #

login=username in OpenDNS                   <-----
password='key OpenDNS'                      <----- CHANGE THIS
(Name of the network you set up in OpenDNS)   <-----

Test if is all ok with the command:

sudo ddclient -verbose -file /etc/ddclient.conf

share|improve this answer

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.