feat: update zones
This commit is contained in:
parent
1ec1d0f3c5
commit
9a1cbf4f94
2 changed files with 32 additions and 1 deletions
22
delete_records.sh
Normal file
22
delete_records.sh
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
TOKEN=""
|
||||
ZONE_ID=
|
||||
|
||||
# EMAIL=me@gmail.com
|
||||
# KEY=11111111111111111111111111
|
||||
# Replace with
|
||||
# -H "X-Auth-Email: ${EMAIL}" \
|
||||
# -H "X-Auth-Key: ${KEY}" \
|
||||
# for old API keys
|
||||
|
||||
|
||||
curl -s -X GET https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/dns_records?per_page=500 \
|
||||
-H "Authorization: Bearer ${TOKEN}" \
|
||||
-H "Content-Type: application/json" | jq .result[].id | tr -d '"' | (
|
||||
while read id; do
|
||||
curl -s -X DELETE https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/dns_records/${id} \
|
||||
-H "Authorization: Bearer ${TOKEN}" \
|
||||
-H "Content-Type: application/json"
|
||||
done
|
||||
)
|
11
zones.yaml
11
zones.yaml
|
@ -12,6 +12,8 @@ jan-ole.de:
|
|||
"*.influx": 185.239.239.162
|
||||
server3: 45.141.36.103
|
||||
"*.server3": 45.141.36.103
|
||||
server2: 134.255.232.17
|
||||
"*.server2": 134.255.232.17
|
||||
portainer: 185.239.239.162
|
||||
"*.portainer": 185.239.239.162
|
||||
music: 147.189.171.39
|
||||
|
@ -64,7 +66,14 @@ krewella.rocks:
|
|||
www: 185.223.31.112
|
||||
|
||||
jan-ole.tech:
|
||||
txt:
|
||||
"@": 70dcbb22ee584668a5cef68b058043c3
|
||||
|
||||
jan-ole.cloud:
|
||||
|
||||
ole.pink:
|
||||
ole.pink:
|
||||
|
||||
narilah.live:
|
||||
a:
|
||||
"@": 76.76.21.21
|
||||
www: 76.76.21.21
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue