2024-12-10 18:48:09 -04:00
2024-12-10 12:49:07 -04:00
2024-11-16 11:14:03 -04:00
2024-11-13 16:44:46 -04:00
2024-12-10 12:46:18 -04:00
2024-11-13 16:44:46 -04:00
2024-11-16 11:14:03 -04:00
2024-12-10 12:46:18 -04:00
2024-11-16 11:14:03 -04:00
2024-12-10 18:48:09 -04:00
2024-11-13 16:44:46 -04:00
2024-11-13 16:44:46 -04:00
2024-11-13 16:44:46 -04:00
2024-11-16 11:14:03 -04:00

https://git.maximotejeda.com/maximo/ddns/actions/workflows/tags.yml/badge.svg?branch=master

  ![tags](https://git.maximotejeda.com/maximo/ddns/actions/workflows/tags.yml/badge.svg?branch=master)

Working creating Request

curl --request POST \
  --url https://api.cloudflare.com/client/v4/zones/b4d1481be7a5d3460768b9bd84d74bfd/dns_records \
  --header 'Content-Type: application/json' \
  --header "Authorization: Bearer 5LgXMn4GjuVG125RoapHUE_uTh8SjnIwVQr-3w0A" \
  --data '{
  "comment": "Domain verification record",
  "name": "maximotejeda.com",
  "proxied": true,
  "settings": {},
  "tags": [],
  "ttl": 3600,
  "content": "200.88.135.2",
  "type": "A"
}'
{"result":{"id":"63aa045481a5fe258ed77dad985c09b5","zone_id":"b4d1481be7a5d3460768b9bd84d74bfd","zone_name":"maximotejeda.com","name":"maximotejeda.com","type":"A","content":"200.88.135.2","proxiable":true,"proxied":true,"ttl":1,"settings":{},"meta":{"auto_added":false,"managed_by_apps":false,"managed_by_argo_tunnel":false},"comment":"Domain verification record","tags":[],"created_on":"2024-09-24T16:11:45.71887Z","modified_on":"2024-09-24T16:11:45.71887Z","comment_modified_on":"2024-09-24T16:11:45.71887Z"},"success":true,"errors":[],"messages":[]}

Query zones dns actives

    curl --request GET \
         --url https://api.cloudflare.com/client/v4/zones/b4d1481be7a5d3460768b9bd84d74bfd/dns_records \
         --header "Authorization: Bearer 5LgXMn4GjuVG125RoapHUE_uTh8SjnIwVQr-3w0A" \
         --header 'Content-Type: application/json' \
{"result":[{"id":"63aa045481a5fe258ed77dad985c09b5" zone_id:"b4d1481be7a5d3460768b9bd84d74bfd" zone_name:"maximotejeda.com" name:"maximotejeda.com" type:"A" content:"200.88.135.2" proxiable:true proxied:true ttl:1 settings:{} meta:{"auto_added":false managed_by_apps:false managed_by_argo_tunnel:false} comment:"Domain verification record" tags:[] created_on:"2024-09-24T16:11:45.71887Z" modified_on:"2024-09-24T16:11:45.71887Z" comment_modified_on:"2024-09-24T16:11:45.71887Z"}] success:true errors:[] messages:[] result_info:{"page":1 per_page:100 count:1 total_count:1 total_pages:1}}

update zone

    curl --request PATCH \
    --url https://api.cloudflare.com/client/v4/zones/b4d1481be7a5d3460768b9bd84d74bfd/dns_records/63aa045481a5fe258ed77dad985c09b5 \
    --header 'Content-Type: application/json' \
    --header "Authorization: Bearer 5LgXMn4GjuVG125RoapHUE_uTh8SjnIwVQr-3w0A" \
    --data '{
    "comment": "Domain verification record",
    "name": "maximotejeda.com",
    "proxied": true,
    "settings": {},
    "tags": [],
    "ttl": 3600,
    "content": "200.88.135.2",
    "type": "A"
  }'
{"result":{"id":"63aa045481a5fe258ed77dad985c09b5" zone_id:"b4d1481be7a5d3460768b9bd84d74bfd" zone_name:"maximotejeda.com" name:"maximotejeda.com" type:"A" content:"200.88.135.2" proxiable:true proxied:true ttl:1 settings:{} meta:{"auto_added":false managed_by_apps:false managed_by_argo_tunnel:false} comment:"Domain verification record" tags:[] created_on:"2024-09-24T16:11:45.71887Z" modified_on:"2024-09-24T16:11:45.71887Z" comment_modified_on:"2024-09-24T16:11:45.71887Z"} success:true errors:[] messages:[]}

check config for a zone

    curl --request GET \
    --url https://api.cloudflare.com/client/v4/zones/b4d1481be7a5d3460768b9bd84d74bfd/dns_settings \
    --header 'Content-Type: application/json' \
    --header "Authorization: Bearer 5LgXMn4GjuVG125RoapHUE_uTh8SjnIwVQr-3w0A" \
{"result":{"nameservers":{"type":"cloudflare.standard"} foundation_dns:false multi_provider:false secondary_overrides:false soa:{"mname":null rname:"dns.cloudflare.com" refresh:10000 retry:2400 expire:604800 min_ttl:1800 ttl:3600} ns_ttl:86400 zone_mode:"standard" internal_dns:{"reference_zone_id":null} flatten_all_cnames:false} success:true errors:[] messages:[]}

To Download bin from gitea instance

  curl -OJ http://gitea/api/packages/maximo/generic/ddns/arm64_v0.0.0-13/ddns
Description
No description provided
Readme 178 KiB
Languages
Go 98.2%
Dockerfile 1.1%
Makefile 0.7%