DynDNS Updater

So the situation that we face in south Africa is quite unique with regards to out internet access, we have 2 kinds of bandwidth , local and international.Local being access to SA hosted resources and international being the rest of the world

Now unfortunately for us international bandwidth is really expensive , so most people turn to local only bandwidth. While you can use most services , things like DynsDNS updates do not work because they are considered international.

First of all for those that don’t know DynDNS is a dynamic IP provider. It allows you to host services from a location that has a dynamic IP , the best example is a Home Pc that needs to be accessed remotely.

Now while there are a few alternatives (if you are on the IS network it works fine) , for people like me where international access is totally blocked i have written a small web service that will do the update for you.

With the help of some code from Ken Hughes that when hosted locally will allow users that only have access to update there dynamic IP’s.

I have attached the source code and exe’s to this post for anyone to have a look at. Once you extract the file you will find 4 folders of importance.

DynDNS Addin : This is the core code used to make calls to the DynDns API. No need to worry about anything here unless you are a coder.

DynDNS Updater : This is the client side exe/app that i have written to interact with the web service. If you want to make updates using local only bandwidth this is the app that you will use. Call it with the parameters “DynDNSUpdater.exe Username password hostname” .

Note i have tested this with mono on ubuntu intrepid so there is no need to use wine if you want to use it on a linux machine. It should also be noted that if you don’t want to call the app using parameters you can edit the app.config file and change the username , password and hostname fields.

If you want this app to be called at any interval, on windows setup a scheduled task in windows (found under accessories->system tools ). On linux setup a cron job to the app from a script, preferably with the values in the app.config .

Tester : This is a basic testing app written by Ken to check that all is working.

WS : This is the web service that is called and used to proxy the calls to the DynDNS API. Unless you are a developer there is not need to worry about this either.

I think that covers the bare basics , if you need any help give me a shout. Note i haven’t uploaded the file to this site due to file types and such ,you can get it from www.codebreaker.co.za

~stalkerh

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

2 Comments to “DynDNS Updater”

  1. [...] Read more from the original source: Run Away Coder » Blog Archive » DynDNS Updater [...]

  2. Craig 17 September 2009 at 10:42 am #

    Hi,

    I could not find any reference to this on CodeBreaker.co.za could you please direct me to it.

    Regards
    C


Leave a Reply