Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Dyndns

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 2 Posters 2.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gohtar345
      last edited by

      I am trying to get the DynDns to automatically update.

      I noticed that there is an entry in the crontab for rc.dyndns.update but i dont think the cron jobs are running.  I have even tried running the rc.dyndns.update manual but that does not actually update the DNS.

      I have downloaded the ddclient and that does work to update.  Now my issue is getting that to run as a daemon or cron job.

      The crontab command i am trying "crontab 10 * * * * root /etc/ddclient/ddclient" i get the error "crontab: 10: No such file or directory"

      I have also tried "crontab -u root /etc/ddclient/ddclient" and get the error "crontab: errors in crontab file, can't install"

      i have copied the daemon ddclient to the /etc/rc.d/ when i try to run the daemon i get "Command not found"

      According to the README i need to run the chkconfig –add command but that command does not exist.

      So i am stumped.

      My Dns has not been automatically updated in 3 days.  I have had to manually do it.

      Help please

      1 Reply Last reply Reply Quote 0
      • G
        gohtar345
        last edited by

        Need to add i am on version 1.2 - RC3

        1 Reply Last reply Reply Quote 0
        • G
          gohtar345
          last edited by

          So… i found me a work around.

          1. I install the ddclient to /etc/ddclient/

          2. then create a script /usr/local/etc/rc.d/ddclient.sh

          #!/bin/sh
          echo 'Running ddclient minicron'

          case "$1" in
          start)
                  minicron 7200 /var/run/ddclient.pid /etc/ddclient/ddclient
                  ;;
          stop)
                  kill -9 cat /var/run/ddclient.pid
                  ;;
          *)
                  echo "WTF!!"
                  exit 64
                  ;;
          esac

          exit 0

          3. chmod 755 ddclient.sh

          4. reboot

          1 Reply Last reply Reply Quote 0
          • C
            cmb
            last edited by

            It's not run from cron (and it's not ddclient), it runs automatically when your IP changes.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.