A set of scripts that help perform tedious tasks on CloudFlare.
Finds all DNS records with the specified origin IP address then sets those records to point to the specified destination IP address.
# cfmvip "<origin-ip-address>" "<destination-ip-address>" "<target-zone-io>" "<user-email>" "<api-key>"
cfmvip "127.0.0.1" "10.0.0.2" "ruyc23ec9zhmexkbvaw9tch7vnbvcmfn" "[email protected]" "prm6rf7ajg459wupzrvj4yrqe2tpvgd8j5pew"
Finds all DNS records with the specified origin IP address then creates a new record with the destination IP address.
# cfcp "<origin-ip-address>" "<destination-ip-address>" "<target-zone-io>" "<user-email>" "<api-key>"
cfcp "127.0.0.1" "10.0.0.2" "ruyc23ec9zhmexkbvaw9tch7vnbvcmfn" "[email protected]" "prm6rf7ajg459wupzrvj4yrqe2tpvgd8j5pew"
Finds all DNS records with the specified target IP address then deletes that record.
# cfcp "<target-ip-address>" "<target-zone-io>" "<user-email>" "<api-key>"
cfcp "10.0.0.2" "ruyc23ec9zhmexkbvaw9tch7vnbvcmfn" "[email protected]" "prm6rf7ajg459wupzrvj4yrqe2tpvgd8j5pew"