Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Confused about custom DDNS

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 682 Views 2 Watching
    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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
          Privacy Policy · Cookie Policy