Koozali.org: home of the SME Server

How does dyndns work ?

vilaplana mathieu

How does dyndns work ?
« on: March 21, 2003, 04:27:09 PM »
Hello all,
i'd like to know how does update ip for dyndns work on sme 5.6.
Is there a cron job or does it check ip or something else ??

In fact i use another dynamic dns account that run under a cron job every 10 minutes but i would prefer to put my script in the same script that sme uses to update my ip on dyndns.org

PS: i'm french, so my english is not a Queen's english

Thanks for your Help.

Jim Little

Re: How does dyndns work ?
« Reply #1 on: March 21, 2003, 04:49:46 PM »
You don't need to run a cron job because SME automatically calls the update script when the external IP changes.

Some dynamic dns servers are already supported, you can choose from them in the original configuration.  For others you must choose "custom" and incorporate your own script.

HTH,

Jim

vilaplana mathieu

Re: How does dyndns work ?
« Reply #2 on: March 21, 2003, 04:59:56 PM »
First thanks for your answer.

But i've ever a script call addns.pl that work very well to update myip.
I'd like just know where is this sme's script that detect that my ip has changed and then launch the dyndns.org script. In this case i could change the ip check sctipt and add a line : /bin/addns.pl and  it will automatically update my second dns.

Thanks for you answer,

Mathieu VilaplanaJim Little wrote:
>
> You don't need to run a cron job because SME automatically
> calls the update script when the external IP changes.
>
> Some dynamic dns servers are already supported, you can
> choose from them in the original configuration.  For others
> you must choose "custom" and incorporate your own script.
>
> HTH,
>
> Jim

Jim Little

Re: How does dyndns work ?
« Reply #3 on: March 21, 2003, 06:16:02 PM »
Log in as admin and go through the configuration.  Choose the dynamic dns option and "custom" as your service.  Make sure you set the domain to be the one recognized by your script if you want to pass the domain name as a parameter.

The system will go through a reboot and then you need to edit the file:
/sbin/e-smith/dynamic-dns/custom

You will see there are parameters passed to this script that you may want to pass on to your addns.pl script.

Take a look at the other files in this directory for examples of how to do logging as well.

Good luck,

Jim