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

    Dynamic DNS Client problem with DigitalOcean

    Scheduled Pinned Locked Moved DHCP and DNS
    7 Posts 3 Posters 1.8k 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.
    • fearlessfaraF
      fearlessfara
      last edited by

      I was trying to follow the instructions to configure the Dynamic DNS for DigitalOcean service, I've followed the guide but the after I finish the configuration and save-force the update the system it doesn't work.
      This is what I see from the DDNS config page:
      Immagine 2020-09-25 215503.png
      As you can see the NO-IP DDNS works but the DigitalOcean doesn't. I'm guessing I'm doing something wrong in the configuration, but I don't know what.
      2.png
      As you can see I think I've followed the instructions, I've put the record ID as the hostname (left side) and then the domain on the right field. On the password field I've put the API token (as required) but as I said before when I push save/force update nothing happens, or at least the resume page shows that the DNS IP update wasn't successful.
      I start wondering if this functionality is working or there is some kind of problem/bug/issue.
      Has anyone any idea or already solved this problem?

      1 Reply Last reply Reply Quote 0
      • V
        vacquah
        last edited by

        Having same issue - have never been able to get this to work .

        1 Reply Last reply Reply Quote 0
        • fearlessfaraF
          fearlessfara
          last edited by fearlessfara

          @vacquah I wrote a python script that automatically retrieves (given your DigitalOcean API Key) your "A records" and updates them with the current IP. But since pfSense has not official support for python (you could still managed to install it but on a router it's not really recommended) I set also a cron job on a local machine and execute that script every hour. Lemme know if you're interested, maybe I could put it on gitHub.

          1 Reply Last reply Reply Quote 0
          • V
            vacquah
            last edited by

            @fearlessfara thank you - but got it working. Its exactly how you set it up the first time - but I used digitalocean - not digitalocean(v6)

            fearlessfaraF 1 Reply Last reply Reply Quote 0
            • fearlessfaraF
              fearlessfara @vacquah
              last edited by

              @vacquah Could you please explain how you got it working? I also use IPv4.

              B 1 Reply Last reply Reply Quote 0
              • V
                vacquah
                last edited by vacquah

                @fearlessfara - the setup is the same as in your original post:

                • set service type field to "digitalocean" not "digitalocean(v6)"

                • use record id in the hostname field and the domain in the domain field - record id obtained with the curl get script with the api and domain name.

                • for password, use the api key generated on digitalocean ( same api key used to get the record id above.

                • TTL = 3600

                • Description is anything you want.

                if its not working, its possible you are using the wrong record id. check the output of the curl script.

                curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer <api key here>" "https://api.digitalocean.com/v2/domains/<domain here>/records"
                
                1 Reply Last reply Reply Quote 0
                • B
                  bsadmin @fearlessfara
                  last edited by

                  @fearlessfara I realize this question is getting older, but since it's a main result in search engines I want to add that now with the latest pfSense version you no longer use the record ID. Just use the actual host name, e.g. "host", and "domain.com" for domain. It just works now; right inside pfSense. Though the instructions on the dynamic DNS client edit page still talk about using the Record ID for DigitalOcean, which is no longer correct. It would have saved me hours if the instructions had been updated. So maybe this additional info will help someone.

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