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

    Confused about custom DDNS

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 178 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.
    • A
      ajp_anton
      last edited by

      I'm trying to set up a custom DDNS updater.

      The command I should run to update the IP of my domain is

      curl -X PUT 'https://min.hostup.se/api/service/12345/dns/54321/records/12345678' -u 'username:password' -H 'Content-Type: application/json' -d "{\"content\": \"%IP%\"}"
      

      I don't know how or where to enter this. It only gives me a field for an URL, but I need a lot more than just an URL.

      1 Reply Last reply Reply Quote 0
      • A
        ajp_anton
        last edited by

        Managed to write a script that updates it. I found a directory /var/preserve that according to some random person somewhere will survive OS updates. There doesn't seem to be much documentation on this.

        I've now set it as a cron job to run every hour, but it would be nice to have some kind of trigger. I feel like this whole thing could be made a lot easier inside the built-in Dynamic DNS updater.

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Hmm, first I've heard of it. Though it's unlikely to be overwritten since it's a custom directory, no update tries to write there.

          I usually out custom scripts like that in /root.

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