Skip to content

Instantly share code, notes, and snippets.

@GeoffreyMetais
Created January 14, 2019 14:31
Show Gist options
  • Save GeoffreyMetais/c2bd92a17a4a85ae3635d758c5612a89 to your computer and use it in GitHub Desktop.
Save GeoffreyMetais/c2bd92a17a4a85ae3635d758c5612a89 to your computer and use it in GitHub Desktop.
dig -4 @resolver1.opendns.com ANY myip.opendns.com +short
curl -X PUT -H "Content-Type: application/json" \
-H "X-Api-Key: $APIKEY" \
-d '{"rrset_ttl": 10800,
"rrset_values": ["xx.xx.xx.xx"]}' \
https://dns.api.gandi.net/api/v5/domains/<domain.tld>/records/hal/A
curl -X PUT -H "Content-Type: application/json" \
-H "X-Api-Key: $APIKEY" \
-d '{"rrset_ttl": 10800,
"rrset_values": ["xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx"]}' \
https://dns.api.gandi.net/api/v5/domains/<domain.tld>/records/hal/AAAA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment