Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - johannsg

#1
19.7 Legacy Series / Re: Dynamic DNS with DigitalOcean
October 29, 2019, 07:22:51 AM
I found the answer in the source comments: https://github.com/opnsense/plugins/commit/a93a949ec26e2a35f85ba7614a94d0188562606e

The username should be DigitalOcean DNS record ID, while the hostname is your top-level domain name. You'll need to query DO's API to obtain the record ID -- you can use the following cURL command (replace API_TOKEN and DOMAIN_NAME with your info):


curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer API_TOKEN" "https://api.digitalocean.com/v2/domains/DOMAIN_NAME/records"


This will return a JSON response that should include the record "id" for your host. For example:


{ "id": 1234567890, "type":"A", "name": "home", "data": "1.1.1.1"... }