Force Dynamic DHCP Update?

Discussion in 'Tomato Firmware' started by ydrol, Aug 14, 2008.

  1. ydrol

    ydrol LI Guru Member


    is there a way to force a dydns update at the command prompt. I have a script that fails over between two internet connections and would like to update my dydns domain when it happens. The 10 minute default is too long.
    I have a a WRT54GS 1.1 running Tomato 1.21
  2. ydrol

    ydrol LI Guru Member

    Just found /sbin/ddns-update presumably I just run it, even if I'm using the 10 minute external checker in the GUI?
  3. TexasFlood

    TexasFlood Network Guru Member

    Take a look at the crontab file (/var/spool/cron/crontabs/root) to see what Tomato has scheduled. Below is what's in mine (well, after removing my custom stuff). I have two DDNS services defined, DynDNS and OpenDNS.

    59 7 * * * ntpsync --cron #ntpsync#
    5 17 17 6 * ddns-update 0 force #ddnsf0#
    41 11 29 6 * ddns-update 1 force #ddnsf1#
    */15 * * * * rcheck --cron #rcheck#
  4. ydrol

    ydrol LI Guru Member

    Cheers, it looks like tomato forces an update after a number of days (29?)
    So I can simply use those commands in my failover script.

    cru l | grep ddns-update | sed 's/^.* \*//' | sh
  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