Koozali.org: home of the SME Server

Dynamic DNS refresh feature in SME server 6.0 not working

microlatina

Dynamic DNS refresh feature in SME server 6.0 not working
« on: March 12, 2005, 01:43:09 AM »
Hi !

I heard that the DDNS service had some problems before that have been fixed in the new versions of SME Sever . Last year I configured the dyndns.org account and set up a DDNS client on one of my network PC´s. This worked fine but the result was unreliable because of problems in the client program (hang up, etc). I am now trying to make my SME box 6.0 use its internal refreshing feature, but unfortunately I couldn´t make it work.

The characteristics of the instalation are the following:

1. Dyndns.org free account "johndoe" and password "xxx123" with a domain "johndoe.homelinux.com" set up.
2. Dyndns.org activated on SME 6.0 box from the admin configuration screen by setting account name "johndoe" and password "xxx123" (just that).
3. Created an ibay "myfolder" and reset password.
4. Virtual domain setup hooking ibay "myfolder" to "johndoe.homelinux.com" virtual domain.
5. SME reboot

I can´t make the refresh work. My ADSL modem is the same one I used with the DDNS client on the PC terminal under Windows 98.

Is there any other setting that I should consider (firewall ??? ) some SME fix or rpm to download ?

For my application I don´t want to use any terminal refreshing the Dyndns.org account.

Any ideas ?

Thank you !

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Dynamic DNS refresh feature in SME server 6.0 not workin
« Reply #1 on: March 24, 2005, 01:23:13 AM »
Quote from: "microlatina"

I heard that the DDNS service had some problems before that have been fixed in the new versions of SME Sever . Last year I configured the dyndns.org account and set up a DDNS client on one of my network PC´s. This worked fine but the result was unreliable because of problems in the client program (hang up, etc). I am now trying to make my SME box 6.0 use its internal refreshing feature, but unfortunately I couldn´t make it work.


Have you looked in your logfiles for dyndns related entries? Have you reported the problem to the bug tracker?

microlatina

Dynamic DNS refresh feature in SME server 6.0 not working
« Reply #2 on: March 24, 2005, 02:35:24 AM »
It doesn´t work with dyndns.org but it works with yi.org  perfectly well. I first checked the dyndns script and I found some inaccuracies. That is the reason why I switched to yi.org

Considering my low degree of experience I couldn´t be able to fix it by myself and report it to the forum.

I don´t know how the bug tracker works, but I will probably find out.

Regards

tbcomputing

Dynamic DNS refresh feature in SME server 6.0 not working
« Reply #3 on: March 24, 2005, 07:42:17 AM »
tbcomputing.com on custom dyndns working here for years on 5.6 and 6 out of the box with the script amended for the custom service.

Never once had an issue.

Tony

microlatina

Dynamic DNS refresh feature in SME server 6.0 not working
« Reply #4 on: March 24, 2005, 01:16:28 PM »
Hello Tony.

It is working perfectly now with the yi.org service right on this SME box which I am using to reply. No need to make any fixes to the original script. The problem is when using dyndns.org

What happens when you choose the custom option ? Is there a ´custom´script model ? where i it located ?

Regards

tbcomputing

Dynamic DNS refresh feature in SME server 6.0 not working
« Reply #5 on: March 24, 2005, 01:44:35 PM »
IIRC you need to go to /sbin/e-smith and find the dyndns script and change it to read ...server=custom..

Thats all

If this is wrong I'll repost tonite when I get home and check it

Tony

microlatina

Dynamic DNS refresh feature in SME server 6.0 not working
« Reply #6 on: March 24, 2005, 07:19:20 PM »
Thank you Tony. Maybe you could post your actula working file as sample.

Rgds

tbcomputing

Dynamic DNS refresh feature in SME server 6.0 not working
« Reply #7 on: March 24, 2005, 08:42:31 PM »
/sbin/e-smith/dynamic-dns/dyndns.org

change line to read

system=custom

If you know how to copy from MC in a terminal into this window I'll post the whole file!!

HTH

Tony

microlatina

Dynamic DNS refresh feature in SME server 6.0 not working
« Reply #8 on: March 24, 2005, 09:28:51 PM »
Tony:

Here is my original dyndns.org file, is not in use.

Quote

# This request will set wildcards on, such that *.$DOMAIN will resolve to
# $DOMAIN.  Thus, if your domain is fred.dyndns.org, www.fred.dyndns.org
# will resolve as well.

wget -q -O /tmp/dyndns.log \
--user-agent="e-smith-dyndns.org/0.1" \
http://"$USERID:$PASSWD"@members.dyndns.org/nic/update?\
system=dyndns\&hostname="$DOMAIN"\&myip="$IPADDR"\&wildcard=ON

RESULT=cat /tmp/dyndns.log
case "$RESULT" in
        good*)
            logger -t dyndns.org "Update at $IPADDR succeeded." ;;
        nochg*)
            logger -t dyndns.org "IP Address $IPADDR already in database." ;;
        notfqdn*)
            logger -t dyndns.org \
                "$DOMAIN is not a Fully-Qualified Domain Name." ;;
        nohost*)
            logger -t dyndns.org \
                "$DOMAIN does not exist on the dyndns.org system." ;;
        !yours*)
            logger -t dyndns.org "$DOMAIN does not belong to you." ;;
        badauth*)
            logger -t dyndns.org "Bad username or password $USERID:$PASSWD." ;;
        abuse*)
            logger -t dyndns.org \
            "$DOMAIN is blocked for abuse; contact support@dyndns.org" \
            "to unblock." ;;
        numhost*)
            logger -t dyndns.org "Too many or too few hosts found." ;;
        dnserr*)
            logger -t dyndns.org "DNS Error encountered." \
                "Response was $RESULT. Please contact support@dyndns.org." ;;
        w*)
            logger -t dyndns.org \
                "NIC is currently unavailable.  Response was $RESULT." ;;
        911*)
            logger -t dyndns.org "Something is horribly wrong." ;;
        *)
            logger -t dyndns.org "Unknown response $RESULT. Status was $?";;
esac

exit 0

[root@sunshine dynamic-dns]#


I don´t know what terminal are you using. I use Putty and I can copy and paste any text on it.

I can understand system=custom asignment but what I mean is that the important thing is what happens when the service is other than dyndns.org

I guess that there are some other things to change in the file and I don´t have enough experience to tell if the protocol for other service could be the same that the one used for dyndns.org .... I really don´t think so.

So if you the idea is that if you have this running with a different service, it could be of much use to have the copy of the script just to check a couple of things.

Just to clear up things:

1. I tried to use dyndns by simply configuring it at the SME administrators panel. Didn´t work. For more explanations on what I did, please see my first post.

2. I switched to yi.org just because I found the name on other script in the directory  /sbin/e-smith/dynamic-dns/ . It worked right away.

3. My conclusion: something is wrong with the dyndns script

4. My question: what if I use any other service and I have no sample script (newbie on this).

5. Now trying to understand how system=custom could work and take a look to a custom script.

Answering CharlyBrady´s question: of course I checked the dyndns.log file which has zero size.  :o)

Thank you !