Koozali.org: home of the SME Server

Dynamic DNS update - clarification requested

Des Dougan

Dynamic DNS update - clarification requested
« on: June 29, 2002, 01:47:46 AM »
I use ZoneEdit for my DNS service, configured via the "custom" dynamic DNS script. Having had an ISP problem this morning, I need to understand when the update script runs. I know that the entry in cron.weekly checks for changes every weekend. However, if the IP address changes because of a problem (e.g. I ran "/etc/rc.d/init.d/network restart" to get an IP after my ISP problem), what triggers the refresh-ddns script? I can't find any reference other than the cron.weekly task, and had to run the script manually to force an update.

Is there an event that checks for a change after the eth1 interface is restarted?

I'd appreciate any feedback and insights anyone can provide.

Thanks,

Des Dougan

Kelvin

Re: Dynamic DNS update - clarification requested
« Reply #1 on: June 29, 2002, 03:58:38 AM »
Hi Des,

I had similar experiences on this issue not too long ago. I use Bigpond Cable in Australia and found that after an outage of a few hours, I restarted the server and reconnected to the internet but found that the Dynamic DNS update script (with DynDNS) did not run and had to run it manually. For some reason, SME did not detect the IP change.

I am trying to get the new version of bpalogin to work (for my case) as it has the ability to run a program upon successfuly login to Bigpond (which means I can call the update Dynamic DNS script).

I'd be interested to see what you find out as well.

Cheers,

Kelvin

Tim McCredie

Re: Dynamic DNS update - clarification requested
« Reply #2 on: July 24, 2002, 08:02:38 AM »
I'm not able to help with an answer sorry but I do have a question.

I configured the Custom script (as per your example in a previous thread) to update my IP with Zone Edit.

It's not working and I get the following error in the log


Jul 24 12:20:56 bart e-smith[985]: Running event handler: /etc/e-smith/events/ip-change/S85update-dns
Jul 24 12:20:57 bart e-smith[985]: Can't exec "/sbin/e-smith/dynamic-dns/dyndns": No such file or directory at /etc/e-smith/events/ip-change/S85update-dns line 52.
Jul 24 12:20:57 bart e-smith[985]: Couldn't exec /sbin/e-smith/dynamic-dns/dyndns: No such file or directory at /etc/e-smith/events/ip-change/S85update-dns line 52.
Jul 24 12:20:57 bart e-smith[985]: S85update-dns=action|Event|ip-change|Action|S85update-dns|Start|1027477256 405550|End|1027477257 393330|Elapsed|0.98778|Status|512

Des Dougan

Re: Dynamic DNS update - clarification requested
« Reply #3 on: July 24, 2002, 08:52:07 AM »
It looks like you haven't, in the admin console, told e-smith to use custom rather than dyndns.

I fixed my original problem, BTW, by adding a second line for my mail server - confirmed by ZoneEdit support.


Des Dougan

Tim McCredie

Re: Dynamic DNS update - clarification requested
« Reply #4 on: July 24, 2002, 11:28:18 AM »
I see what you mean, but I had replaced the dyndns script with you're one after it failed to update when set to custom.  

I'm using Version 5.5 if that makes any difference

this is from the first attempt

Jul 24 23:22:02 bart e-smith[1010]: Running event handler: /etc/e-smith/events/ip-change/S85update-dns
Jul 24 23:22:03 bart e-smith[1010]: Can't exec "/sbin/e-smith/dynamic-dns/custom": No such file or directory at /etc/e-smith/events/ip-change/S85update-dns line 52.
Jul 24 23:22:03 bart e-smith[1010]: Couldn't exec /sbin/e-smith/dynamic-dns/custom: No such file or directory at /etc/e-smith/events/ip-change/S85update-dns line 52.
Jul 24 23:22:03 bart e-smith[1010]: S85update-dns=action|Event|ip-change|Action|S85update-dns|Start|1027516922 158343|End|1027516923 622870|Elapsed|1.464527|Status|512

any ideas ??