This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Howto hack ez-ipupdate / custom dyndns

Much of this post is a rehash of an earlier post, except now I have got it all working (including the startup at boot time, and restarting if it fails).  Please not that if you have support from Astaro these changes will make it null and void.

Just to reiterate what was said previously. Astaro does NOT yet support CUSTOM DynDNS. Below is a method to provide a work around.  Follow these steps.

1. Make a copy of the dyndns.conf file.  This file is in /etc.  Make a copy called ez-ipupdate.conf

2. Using vi edit the ez-ipupdate.conf file to look like this (replacing the info with your own of course):

Code:
service-type=dyndns-custom

user=username[:P]assword
host=mydomain.com.au,www.mydomain.com.au,mail.mydomain.com.au
mx=mail.mydomain.com.au
interface=ppp0
max-interval=86400
cache-file=/opt/tmpfs/ez-ipupdate.cache
daemon



3. Make sure dyndns is turned on in webmin.

4. Edit the startup file.  The startup file is in the /var/mdw/scripts directory and called dyndns.  Change the line that reads ARGS=" -c /etc/dyndns.conf" to read ARGS=" -c /etc/ez-ipupdate.conf"

5. That is all the changes.  Now you can either restart your box or just kill the ez-ipupdate process and let the selfmonitor restart it.

As said months ago it would be nice if Astaro would include the extra options in webmin as it is a nobraineer kind of change.  But I guess its not up there on there list of priorities.

Anyway, hope this helps someone out there.....  and remember to have fun....


This thread was automatically locked due to age.
Parents Reply Children
  • There is a way to do it: just use ddclient!

    ddclient does not check the ip address of the interface but calls a website which shows the ip address assigned by the provider to the router - so if this one changes ddclient updates the e.g. dyndns.org address.

    Hint: do not run ddclient as a daemon since I made the experience that it crashes from time to time.
    Better have it called by cron every 5 minutes...

    techno.kid
  • It should be noted that if you use a DSL router then even if you get your right address advertised things will probably not work as you would want.  This is because the router is doing NAT as well as the firewall.  This double NAT generally breaks everything when it comes to getting inbound services to work.  If your using a proper firewall to do the NAT then you do not want to be using a DSL router, just a modem.
  • Hi all,

    I´d like to come back to the idea of "FAQ for ASL hacks" like Simon Shaw has.

    I do not want to copy Simons idea/work but extend it with a more "flexible" design.
    I have phpmyfaq.de running for several other things... so I´d like to discuss this idea with you "hackers" :-)

    The advantage of phpmyfaq is that you can have different editors who can maintain the site plus the posibilty for the readers to comment the given information.

    So if there is an interest in this an Simon likes the idea too, I´d provide a link to this page.

    techno.kid
  • I have two items. The first concerns ASL 5.200 and DYNDNS-Custom.  I have this hack setup properly, and it was working great until I updated to 5.200. It then started out ok, but DYNDNS has since gone in the toilet. It will not run.  When I try and start ez-ipupdate from an SU prompt, it appears we are running a very advanced version of ez-ipupdate...

    ez-ipupdate Version 3.0.11b8
    Copyright (C) 1998-2001 Angus Mackay.

    I checked the ez-ipupdate web site, the latest version posted is 3.011b7.  I have taken to doing manual updates of DYNDNS, for now. I would really, really like to have my Custom DNS back again.

    Like I said, two points. In tracking this down, I found another Astaro Hacker Site: ASL Hackers FAQ
    Check it out
  • Hello OldNerdGuy,

    this is because of the nature of a hack ;-)
    After you updated to ASL 5.2 /etc/dyndns.conf was overwritten with the dyndns configuration which is held in the ASL database and can only be seen in the GUI.
    Therefore you should take your copy of dyndns.conf (like written in the ASL Hackers FAQ :-) and change it back - after that everything should work like before.

    But you are right... the version looks strange compared with the infomartion at ez-ipupdate.com.


    techno.kid
  • I've just been to h-ll and back with this one; glad I found this thread! Who would have suspected that Astaro would have backrev'd this module?

    Anyway, here was my solution:

    1. Go to http://rpmfind.net/linux/rpm2html/search.php?query=ez-ipupdate and grab the latest (ftp://rpmfind.net/linux/SuSE-Linux/i386/9.3/suse/i586/ez-ipupdate-3.0.11b8-130.i586.rpm) with curl.
    2. Run rpm -U ez-ipupdate-3.0.11b8-130.i586.rpm
    3. Apply the dyndns-custom hack per 5.x

    Hope this helps someone else. I was at my wits' end with this.

    PS - Subsequent to the above, I tried picking up 3.0.11b8-142 from http://download.opensuse.org/distribution/SL-10.1/inst-source/suse/i586/ez-ipupdate-3.0.11b8-142.i586.rpm, however, this seems to require libc.so.6 (GLIBC_2.4), so I didn't want to mess with things in case I ended up suffering under the law of unintended consequences... I'm not sure what may have been tightened up with the latest build. I'll have a look in the rpm to find out.
  • After installing v7 I found that the configuration of dyndns-custom is supposedly possible, but limits you to a single host name to update, so you can't have www.mydomain.com,mail.mydomain.com,mydomain.com updated by the firewall.
    I dug deeper into the insides of the firewall and found that astart are now using command line parameters to set all the options for ez-ipupdate and no longer the dynsdns.conf file.  It also appears that the dyndns startup script in the scripts directory although still there is not being used.  This means that the old method of getting dyndns-custom working is no longer possible.  Good one Astaro!  If your going to add new functionality surely you would allow ALL options to be set not just the ones you think people might like.
  • @theRat:
    Wouldn't the "Set wildcard record" option do what you need?

    anonymous
  • Abosultely not.  The wildcard setting is only for the standard dyndns service, and does not exist within dyndns-custom.
  • So I guess your problem is that WebAdmin does not accept your input in the "hostname" field?