Created
May 3, 2020 05:16
-
-
Save thanhson1085/03edd90cac3b4bbfdbfb4dc3ba1df616 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in {004..005} | |
do | |
A='{"type":"A","name":"' | |
B='","content":"xxxx","ttl":120,"priority":10,"proxied":true}' | |
DATA="${A}${i}${B}" | |
curl -X POST "https://api.cloudflare.com/client/v4/zones/xxx/dns_records" \ | |
-H "X-Auth-Email: [email protected]" \ | |
-H "X-Auth-Key: xxx" \ | |
-H "Content-Type: application/json" \ | |
--data $DATA | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment