Koozali.org: home of the SME Server

Zone Edit Dynamic-dns Problems

Troy

Zone Edit Dynamic-dns Problems
« on: December 10, 2003, 07:50:01 PM »
I'm running 6.0b3 and am having problems with dynamic dns not working (ip changes, url is not updated). I've searched the forms, and found some helpful info but nothing that has solved the problem yet.

Dyndns seems to be enabled (I also get a weekly e-mail saying that the cron job has completed and run my script), I'm using a  custom script fot zone edit. If I run my custom script (/sbin/e-smith/dynamic-dns/custom), it runs correctly. Further, if I run it when the ip is incorrect, it updates the ip correctly.

So I can only assume that the script isn't being called when the ip changes?

Any help would be _greatly_ appreciated, as this is getting a little frustrating.

Thanks, Troy

All the info on my config I could think of is below. If there is anything else I should check, let me know.

1. When I run /sbin/e-smith/dynamic-dns/custom I get:

www.macneilarch.ca">[root@mac dynamic-dns]

2. The result of
/sbin/e-smith/db configuration show DynDNS

DynDNS=service
    Account=Username_correct
    Password=Pass_correct
    Service=custom
    status=enabled

3. The e-mail result of the weekly cron?

/etc/cron.weekly/refresh-ddns:

macneilarch.ca
www.macneilarch.ca">

4. Permissions on the custom script file:
-r-xr-xr--    1 root     root          929 Dec  1 12:06 custom

5. The content of the custom script (note, user, pass and domains hard-coded):

#!/bin/sh
# Description: www.zoneedit.com (free service)

#------------------------------------------------------------
# dyndns.org dynamic DNS update handler.
#------------------------------------------------------------

IPADDR=$1
USERID=$2
PASSWD=$3
DOMAIN="$4"

# This request will update only the primary domain name. It is
# assumed that you have any desired hostnames (or a wildcard),
# as well as any virtual domains, set as a CNAME (alias) to
# the primary domain name.

lynx -source -auth="USER:PASS" "https://dynamic.zoneedit.com/auth/dynamic.html?host=macneilarch.ca"

lynx -source -auth="USER:PASS" "https://dynamic.zoneedit.com/auth/dynamic.html?host=mail.macneilarch.ca"

lynx -source -auth="USER:PASS" "https://dynamic.zoneedit.com/auth/dynamic.html?host=www.macneilarch.ca"

exit 0
--

[%sig%]

John Mackenzie

Re: Zone Edit Dynamic-dns Problems
« Reply #1 on: December 11, 2003, 09:33:42 AM »
Troy,  

There are several dynamic dns scripts, each specific for one of the several different dynamic dns services.

Probably the 2 best free dynamic dns services are:  
ZoneEdit at  http://www.zoneedit.com  
DynamicDNS  at  http://www.dyndns.org  

I'm not certain, but is your dynamic dns script one which is meant to be sent to dyndns.org , but has been mistakenly configured to zoneedit.com ?
(I'm not sure exactly which dynamic dns script presently ships with esmith or which you have enabled).  

A few years ago, I installed ddclient: http://freshmeat.net/projects/ddclient/?topic_id=149%2C150%2C152%2C253  
.. which was specific for dyndns.org  

But after a brief flirtation using a dynamic dns, I soon changed to a fixed IP.

John Mac

Troy

Re: Zone Edit Dynamic-dns Problems
« Reply #2 on: December 12, 2003, 08:57:23 PM »
Thanks for the pointer to ddclient. I have a zone edit account, which ddclient now supports. I'll give it a try as it seems rather more robust than my current config.

My current script is based on another thread from the forums. It basically just calls a webpage which zonedit uses to grab the current ip. It works well enough when it's run, but it doesn't seem to be run on an ip change.

Having spent more time browsing logs, I suspect that the adsl modem is getting a new external ip and leaving the internal ip unchanged, so the script isn't called.

ddclient appears to have configuration options for this sort of thing so I'll see what I can cook up. Worst case, I'll have to ante up for a static ip.

Thanks,
Troy

John Mackenzie

Re: Zone Edit Dynamic-dns Problems
« Reply #3 on: December 13, 2003, 11:19:38 AM »
> ddclient appears to have configuration options for this sort of thing so I'll > see what I can cook up. Worst case, I'll have to ante up for a static ip.

Yes, I did some checking, and in the past I found ddclient worked reasonably well with my zoneedit account.  

The dynamic dns scripts that ship with e-smith and which can be configured at installation don't use zoneedit, but there is one which uses dynDNS at  http://www.dyndns.org  - if you want to use this script, you will need an account (free) with dynDNS.  (It's worth getting an account with dynDNS anyway, to get 5 free virtual domain names).  

But when you use a dynamic IP you will find that every few hours your ISP will change your external IP address, and it will take a few minutes for this new IP address to register with zoneedit (or dyndns).  During this time, you lose your Internet presence for your web server, email server and ftp server, and for this reason I soon changed over to a static IP address.

John Mac