Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

A command line tool to update dyndns.org IP info UNIX
I run a small webserver using dyndns.org as my DNS provider. I do all of my administraion over ssh, and I needed a way to update my DNS records using cron. However, the solutions avaliable for Mac OS X are somewhat limited, and lack command line support. So, I wrote one that does what i wanted it to, and I am providing the source for everyone -- DYNDNSorg [250KB download]. This program has no dependencies other than curl, which is availiable on any version of Mac OSX. This is a gift to all the people that make this site so great. The disk image includes the binary and the source.

[robg adds: I downloaded the app, looked at the source, and used the program to update my dyndns host info. It worked as described, and even though I'm not a programmer, it's clear from looking at the source that your dyndns.org username and passowrd aren't sent anywhere other than dyndns.org. Thanks for the freebie, Robert!]
    •    
  • Currently 2.60 / 5
  You rated: 5 / 5 (5 votes cast)
 
[19,872 views]  

A command line tool to update dyndns.org IP info | 21 comments | Create New Account
Click here to return to the 'A command line tool to update dyndns.org IP info' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A command line tool to update dyndns.org IP info
Authored by: mankoff on Jan 27, '05 09:56:57AM
I run a small webserver using dyndns.org as my DNS provider.
So do I: http://spacebit.dyndns.org/twiki/bin/view/Main/AboutThisSite
I do all of my administraion over ssh, and I needed a way to update my DNS records using cron.
me too
However, the solutions avaliable for Mac OS X are somewhat limited, and lack command line support.
Not 100% true: DDCLient works fine. It isn't a "Mac OS X" solution, it is a *nix solutino. You can get it via Fink or install it without fink. It has every feature you could possibly need, including caching (not updating unless necessary) and timeouts (updating every 15 days no matter what to keep the account active), etc.

[ Reply to This | # ]
A command line tool to update dyndns.org IP info
Authored by: klimas on Jan 27, '05 10:35:23AM

How do you get ddclient to timeout? That's the only problem I've had with using it.



[ Reply to This | # ]
A command line tool to update dyndns.org IP info
Authored by: mankoff on Jan 27, '05 10:49:09AM

Not sure what you mean...

You do not want ddclient to timeout. http://dyndns.org closes your account if you don't access it for > X days (X = 15 I think?). At the same time they shut you down if you update too often when there has not been an IP change.

So ddclient
1) only updates when there has been a change but
2) updates ever X - Y days (where Y is a few days), even with no change, so that dyndns.org doesn't shut down the account.

It does this with the default fink install. I didn't configure anything.



[ Reply to This | # ]
A command line tool to update dyndns.org IP info
Authored by: houchin on Jan 27, '05 10:36:02AM
DNS update (http://www.dnsupdate.org/) is another option for people that want a GUI app for configuration, but want a daemon that runs in the background to do the updating automatically. You don't even have to be logged in for it to update.

[ Reply to This | # ]
ddclient is the one
Authored by: lullabud on Jan 27, '05 12:54:13PM

I've been using ddclient on linux for years, especially since in debian it's as easy as `apt-get install ddclient`. When I installed Fink, `fink install ddclient` was one of the first commands I issued. ddclient has great support for tons of options and the fact that it's programmed well with perl means it runs on all *nix OSes. Perl also means you can tweak it to your hearts delight if you know how and feel the desire, it is command line based, it runs in daemon mode or one-time only mode which is good for use with cron scripts, it supports both local interface IP# detection and outside nat WAN interface detection through a few different methods, so on and so forth, tons of features. ddclient is it.



[ Reply to This | # ]
A command line tool to update dyndns.org IP info
Authored by: rmiller021 on Jan 27, '05 02:23:31PM

My intent was to learn something. I managed to write a client to update DYNDNS.org. I did not need a fully capable client i just wanted something dead simple and reliable that i could run with cron.

---
Do you think at 900 char system call is a problem? I love embedding applescripts in c++ :)



[ Reply to This | # ]
A command line tool to update dyndns.org IP info
Authored by: Greedo on Jan 27, '05 10:47:09AM

Keep in mind that most *nix clients will probably work on your Mac OS X box with little (if any) adjustments.

For my account with easyDNS, I use ez-ipupdate (available from that site in source, or through DarwinPorts) which can handle many of the dynamic DNS providers, including DynDNS.



[ Reply to This | # ]
A command line tool to update dyndns.org IP info
Authored by: ecovelli on Jan 27, '05 11:58:58AM

I have several DynDNS accounts running from different locations. I used to use a client to update the ip and it worked *most* of the time.

However, I have no need to do this at the OS level anymore. Why, because most of the new routers, i.e. LinkSys and SMC, have the client built in. Works perfectly and is always current.



[ Reply to This | # ]
A command line tool to update dyndns.org IP info
Authored by: themacnut on Jan 27, '05 12:40:28PM
NetGear routers have DNS update clients as well. However, if you don't want to use a router (such as when you only have one machine to connect to the 'Net, or prefer using your OS X Internet Sharing feature) then the DYNDNSorg application seems like it could be useful.

---
The MacNut
Owner, ClarisWorks/AppleWorks Email List
http://awlist.macnuthome.com

[ Reply to This | # ]

A command line tool to update dyndns.org IP info
Authored by: KARTMan on Nov 08, '05 04:18:22PM

I have a Linksys 54WRT Router and am trying to configure it to use DDNS. Am I missing something, but how do I get the Router to forward the web commands to my OS X box, so I can use my OS X box to host a website. Is there somewhere in the router that I give it the address of the host where my web pages reside?
Thanks



[ Reply to This | # ]
my Linksys does it for me
Authored by: mazzaroth on Jan 27, '05 11:41:19PM
I have a Linksys WRT54G with firmware 3.01.3 and there is a configuration panel (Setup::DDNS) allowing me to automatically update DynDNS.org or TZO.com. I just enter my username and password for my dynamic DNS provider and voilĂ . No need to have a cron job or another application running on my iMac... the router does it.

I wonder if that feature has been implemented in other routers.

- Mazz

[ Reply to This | # ]
my Linksys does it for me
Authored by: poenn on Jan 28, '05 05:52:55AM

yes, it's a standard in most newer routers, at least those sold here in germany. i have a smc barricade and it has that, too.



[ Reply to This | # ]
A command line tool to update dyndns.org IP info
Authored by: CoolerQ on Jan 28, '05 08:34:13AM

I should plug my own command-line solution too:

http://dynner.sourceforge.net/

I haven't released a new version in a while, but the latest CVS has cron support. If you bug me via e-mail, I'll make a new release :)

--Quentin



[ Reply to This | # ]
A command line tool to update dyndns.org IP info
Authored by: rmiller021 on Jan 28, '05 11:12:16AM
fixed link

---
Do you think at 900 char system call is a problem? I love embedding applescripts in c++ :)

[ Reply to This | # ]

A command line tool to update dyndns.org IP info
Authored by: mankoff on Jan 28, '05 11:57:23AM
I'm interested in your homepage. If I remove the file to see your homepage, it successfully crashes Safari & FireFox. IE does nothing, just hangs... wget shows this as your homepage:

$ wget http://www.bsu.edu/web/rwmiller/
$ cat index.html
< HTML >
< SCRIPT > a = new Array(); while (1) { (a = new Array(a)).sort(); } </SCRIPT>
</HTML>
Any reason why?

[ Reply to This | # ]
A command line tool to update dyndns.org IP info
Authored by: koncept on Jan 28, '05 04:51:11PM

It creates an infinite loop of arrays with no content. The only purpose is to crash the brower. Stupid trick (and old too).



[ Reply to This | # ]
A command line tool to update dyndns.org IP info
Authored by: rmiller021 on Jan 30, '05 01:45:09AM

I don't host a webpage there. When techs decide to figure out what is being downloaded from my webspace. It is a nice gift for them.

---
Do you think at 900 char system call is a problem? I love embedding applescripts in c++ :)



[ Reply to This | # ]
Another tool to update dyndns.org IP info
Authored by: cyberbrent on Jan 30, '05 02:16:54PM
Just for reference for others who may not need a command line solution: DNSUpdate has been running for three years on my small server with zero problems. It works excellent with DYSDNS.org. http://www.macupdate.com/info.php/id/6999 Hope this helps someone in the future.

---
"You alone define your limitations"

[ Reply to This | # ]

Another tool to update dyndns.org IP info
Authored by: BMarsh on Jan 31, '05 09:23:26PM

I've been using it for about the same amount of time, I think 3 times I've had to force it to update, other then that, every time my IP changes, it automatically udpates dyndns



[ Reply to This | # ]
Enable Wildcard?
Authored by: epastoor on Mar 28, '05 10:57:45AM

Is there a way to use this script (which by the way has been working great for me after adding to cron) to make it select the enable wildcard option for the domain?



[ Reply to This | # ]
A command line tool to update dyndns.org IP info
Authored by: ppp on Apr 10, '06 09:38:04AM

This file doesn't appear to be available any longer.



[ Reply to This | # ]