No automatic DDNS update?

Discussion in 'Tomato Firmware' started by andyd2k, Jul 13, 2007.

  1. andyd2k

    andyd2k LI Guru Member

    The point of having it in the firmware? I keep thinking it will then two months pass and I get a auto email from no-ip that I need to update or the address will expire
  2. GeeTek

    GeeTek Guest

    You need to change your eye pee address once in a while. If not, set up a static DynDNS addy.
  3. The_Unknown

    The_Unknown Network Guru Member

    That normally happens to cable connections, that are "always-on", keeping the same address.

    ADSL connections usually have limited durations, like 2 or 3 days, and the IP address is constantly changing.

    Due to this difference in DHCP Leases, you may have to install some software in order to get rid of those boring emails :)
  4. mraneri

    mraneri Network Guru Member

    I have a DynDNS Dynamic IP, and seems my router updates ever 28 days even if it doesn't change... I think...
  5. Max Monroe

    Max Monroe LI Guru Member

    I don't think you need to install anything... I have the following line in my init script:

    cru a ddnsupd "0 2 * * 0 ddns-update 0"

    It schedules the ddns-update command for execution about once a week, if I remember correctly. I can't guarantee you that this FORCES an update when it executes, but I think it does...
  6. andyd2k

    andyd2k LI Guru Member

    Where can I get more info about setting up scripts like that? Would like to know more about the syntax you used.

    And thanks for the info guys. Just figured there had to be a automatic way of doing this since there is a "force update" option.
  7. digitalgeek

    digitalgeek Network Guru Member

    cru a ddnsupd "0 2 * * 0 ddns-update 0"

    Cron Utility
    add: cru a <unique id> <"min hour day month week command">
    delete: cru d <unique id>
    list: cru l
  8. Overflow-ar

    Overflow-ar LI Guru Member

    i've tried with no-ip and is working fine since i've flashed my router. (3 days ago). Anyway, some time ago, I used to force a change in the IP address of my cable connection by unplugging the cablemodem and plug again with a different MAC address on the router. Maybe works for you too.
  9. andyd2k

    andyd2k LI Guru Member

    Thanks for that
  10. andyd2k

    andyd2k LI Guru Member

    It works but it won't auto update no-ip. you have to force the update within tomato's ddns page
  11. andyd2k

    andyd2k LI Guru Member

    It actually doesn't do anything on my end. It definitely should be in init? Not WAN up? Just trying to figure out how to get this working without actually installing the no-ips app
  12. Max Monroe

    Max Monroe LI Guru Member

    As I said, I'm not sure it would force an actual update, but it definitely should show up in your web-interface DDNS status message as an attempted update. No, it should not be in you WAN script, because that line is not there to execute the IP update, it's there to schrdule it for periodic execution later. That script line creates one more scheduled task every time it is run; you need to do that only once per every router reboot, or you'll end up with N identical scheduled tasks. That also means that just adding that line to your init script won't do anything until you actually reboot the router. Or execute the script line from the command line, to achieve the same effect.
  13. andyd2k

    andyd2k LI Guru Member

    Ah ok - so the script only runs when I reboot the router? Wasn't sure what "init" meant but I guess it's initialize? Never really reboot my router so I guess this isn't a option for me. I'll just download the client instead.
  14. Thracian

    Thracian LI Guru Member


    I had the same issue with no-ip NOT updating even though I had the correct info entered in ddns section of tomato.

    It seems the folks at no-ip have added "groups" as an option for the free accounts (possibly others).

    I created a group, named it and then entered this information in the "Hostname / Group Name" section of tomatos ddns. It updates correctly now and has been for a few months.


  15. jksmurf

    jksmurf Network Guru Member

    Does Tomato do an automatic 28 day DDNS update with DYNDNS like Thibor, from a GUI or is the command line a must?


    Attached Files:

  16. mstombs

    mstombs Network Guru Member

    Thibor did not do an automatic update if the IP didn't change (one its very few bugs) - unless you ran a script, I believe Tomato had same problem (inherited from Linksys) until the recent round of updates:-

    Version 1.08
        * New DDNS system adds 3322, FreeDNS, OpenDNS, custom https:// URLs, external check ip support, retry on error, 
    refresh after 28 days on all services to prevent expiring.
    But its too early to tell whether it works, the 'early' adopters have only just upgraded to v 1.10!
  17. jksmurf

    jksmurf Network Guru Member

    Cheers mstombs, that's a relief, I have ADSL which is shared with a TV content provider, all going through my router to the PC (HTPC), so I was a bit worried about missing the updates, and missing shows, thus incurring the wrath of SWMBO.

  18. ng12345

    ng12345 LI Guru Member

    I have been recently getting this problem where tomato gets stuck trying to update and won't start working again until I do a forced update (through the Web GUI).

    I am adding this command to my init script (hopefully it works), but I just wanted to make sure that the command posted by the user causes an update every 2 hours and not once a week as he stated

    edit: just looked this up using google, and realized this means the 2nd hour of every sunday

    also if he wants to do a force you can add force to the end of the command
    i.e. cru a ddnsupd "0 2 * * 0 ddns-update 0 force"

    edit2: just tested it -- if you don't add force, it won't update unless the IP has changed
    also I have tomato 1.15 and it does not have a 28 day timer (according to cron) -- it had a 52 8 7 5 2 timer for force (meaning only every 5 months?)
  19. Tomato DDNS & - expiring

    I had the same issue with no-ip expiring. I emailed them asking why it was still saying it expired and this was their response:
    So basically because my IP was not changing, it was not reseting the expiration "counter". I've also tried reseting the router, as well as force next update with no success.

    The way I got around it was to use both DDNS 1 & 2:
    Under DDNS 1, I used a Custom URL:
    Under DDNS 2, I used the normal service in the dropdown

    Tomato appears to run DDNS 1 first, then DDNS 2 second, which basically changes it to a temporary IP, then to the correct IP. Hope this helps someone else out that doesn't want to use scripts to update to get around the expire notice.

  20. ng12345

    ng12345 LI Guru Member

    that is good to know

    i've noticed when tomato fails to update the IP correctly (using DynDNS), it will say retry in 15 minutes -- is there anyway to decrease this time between retries.

    Since putting in a cru command ( i did every 8 hours), i've already noticed an ip address fail 1 for 1.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice