Hi, I can't update my ip on Linux because there is no specific software for it, and it's really inconvenient to always have to log in to OpenDNS and manually change my ip,so I hope OpenDNS could really have some ip updating software for Linux.
comments 23 Comments  

Comments

written by paul553 787 days ago Rating: 5 | Rate Comment: + -

I must agree, we need a client for linux/unix systems, even if it's just source code that we can compile ourselves.

written by rockyridge 786 days ago Rating: 9 | Rate Comment: + -

ddclient is a Perl script, described at http://www.opendns.com/support/article/192

After you create a network in OpenDNS with name "home", and set it for dynamic update, here's what your config file should look like:

# Configuration file for ddclient

#

# /etc/ddclient.conf

daemon=300 # check every 300 seconds

syslog=yes # log update msgs to syslog

pid=/var/run/ddclient.pid # records process ID

ssl=yes # use ssl

use=web, web=whatismyip.org # get router WAN IP

server=updates.opendns.com

protocol=dyndns2

login=??? # opendns_username

password=??? # opendns_password

home # opendns_network_label

written by jedsmith13 178 days ago Rating: 1 | Rate Comment: + -

Thanks this helped a lot.

I sure seems hard to find some of the specific information.

I use Ubuntu and all I had to do was

install ddclient,

sudo gedit /etc/ddlient.conf

then copy the above config file change login, password, and possibly home.

I then ran sudo ddclient and it worked great

written by rockyridge 786 days ago - show/hide this comment Rating: -1 | Rate Comment: + -

written by Skip 783 days ago Rating: 2 | Rate Comment: + -

you already have all that you need to update on any linux or unix... you have cron and curl.

written by OpenDNSrocks 760 days ago Rating: 3 | Rate Comment: + -

i use my linksys wrt54g and dyndns / dns-o-matic to automate my updates of my home network (ubuntu)

written by freewaregear 758 days ago Rating: 3 | Rate Comment: + -

OpenDNS Updater for Linux... (with a self-executing installer), since its number of users keep increasing. Good idea!

written by spatz 721 days ago Rating: 7 | Rate Comment: + -

It's possible to update the IP using an HTTP request. I use the following command in a cron job:

wget -O - -q --http-user=USERNAME --http-passwd=PASSWD https://updates.opendns.com/nic/update

written by greenmr 720 days ago Rating: 2 | Rate Comment: + -

Thank you spatz... thank you, thank you, thank you. Exactly what I needed to get BrazilFW to update OpenDNS for me without having to install another package to do the job. And with OpenDNS's DNS-O-MATIC feature it will handle my DynDNS updates too. My only concern about this is that I can't see if there is a way to only execute this command if the IP has actually changed. Clearly, a Dynamic IP client would do this, so maybe I'll have to do this anyway.

written by ohwg.dit 526 days ago Rating: 0 | Rate Comment: + -

Thank you for posting this HTTP request. I think you just helped me fix a problem I have been working on for a month now!!

written by joe262 398 days ago Rating: 0 | Rate Comment: + -

you rock. thanks!

written by 1ace 713 days ago Rating: 3 | Rate Comment: + -

here is my crontab:

/10 * * * * root curl -s https://updates.opendns.com/nic/update?hostname=YOUR-NETWORK-NAME-u USER:PASSWORD >/dev/null

of course, caps words have to be replaced.

written by timb_nz 570 days ago Rating: 1 | Rate Comment: + -

The joys of Linux going from geeky to mainstream is that there will be more requests for this.

written by jejones3141 564 days ago Rating: 0 | Rate Comment: + -

If there is a way to notice when the dynamic IP address changes, then it's to OpenDNS's advantage to provide such a client. Looking at my router, the IP address my ISP has given me is good for several days--but if I set up a cron job, I would indeed set it up as 1ace has, to run every ten minutes, to cut down the duration of a discrepancy (OpenDNS docs say it takes up to ten minutes for the information to propagate, so it doesn't make sense to run more often.

[Pause to make the router renew the DHCP]

OK, either the three-day value is what you get, and the router recently refreshed, or my ISP keeps track of the countdown and just told the router the current value. In any case, every three days versus every ten minutes is 372 times as much traffic as is really needed... but if I set cron to run curl every three days, on the average the data will be out of date for a day and a half assuming uniform random distribution.

Come to think of it, shouldn't my router be the thing that passes word along that the IP address changed?

written by greggster 450 days ago Rating: 1 | Rate Comment: + -

1. use wget + php somewhere on the net (ipchicken.com) and parse out the public IP. I have this setup for myself here - use if you like all you want, on a VPS. http://mochabomb.com/publicscripts/ip.php - source at http://mochabomb.com/publicscripts/ip.txt

2. Diff that against the previous result - if different, run the update.

3. wrote a perl script to do this: http://mochabomb.com/publicscripts/opendns-updater.txt - if you make better please post it here...

Thanks for publishing the update method, working well for me.

written by t3r3 400 days ago Rating: 0 | Rate Comment: + -

Thank you greggster,

work like a charm!

written by upd8r 329 days ago Rating: 0 | Rate Comment: + -

Greggster, this is great! Thanks for providing!

written by khaloudy 394 days ago - show/hide this comment Rating: -1 | Rate Comment: + -

written by mrobertm 260 days ago Rating: 0 | Rate Comment: + -

On ubuntu, as root, copy this into a new file called "/etc/cron.d/opendns":

*/10 * * * * nobody curl -s https://updates.opendns.com/nic/update -u USERNAME:PASSWORD | grep -vE "^good"

This is a more robust way of installing a cron -- it's a file, so a backup of /etc will pick up the configuration, the cron runs as the user "nobody" which is always better than running as root, and email will only be sent by cron if the first characters of the response from opendns ISN'T "good".

written by dopenelson 246 days ago Rating: 2 | Rate Comment: + -

Saw this in a separate Idea. Be sure to consolidate.

written by settima 172 days ago Rating: 0 | Rate Comment: + -

curl -i -m 60 -k -u USER:PASSWORD 'https://updates.opendns.com/account/ddns.php?'

written by Frederico Araujo 45 days ago Rating: 0 | Rate Comment: + -

wget -O - -q --no-check-certificate --http-user=USERNAME --http-passwd=PASSWORD https://updates.opendns.com/nic/update?hostname=home

written by 6 days ago Rating: 0 | Rate Comment: + -

ghd purple http://www.hghdoctor.com ghd purple

mbt shoes http://www.ilovembt.com mbt shoes

louboutin shoes http://www.christianlouboutinspace.com louboutin shoes

cheap mlb jerseys http://www.jerseylink.com cheap mlb jerseys

cheap jerseys http://www.jerseylink.com cheap jerseys

nike shox shoes http://www.shoeglobal.com nike shox shoes

cheap ghd http://www.springhd.com cheap ghd

wholesale mlb jerseys http://www.jerseylink.com wholesale mlb jerseys

max 95 http://www.shoeglobal.com max 95

nfl jerseys http://www.jerseylink.com nfl jerseys
| Edit


Sign in to comment or register here.