1
19.7 Legacy Series / Re: Dynamic DNS with DigitalOcean
« on: 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):
This will return a JSON response that should include the record "id" for your host. For example:
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):
Code: [Select]
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:
Code: [Select]
{ "id": 1234567890, "type":"A", "name": "home", "data": "1.1.1.1"... }