12 lines
353 B
Bash
Executable File
12 lines
353 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ttl=300
|
|
ip=${1}
|
|
|
|
contents="[{\"content\":\"${ip}\"}]"
|
|
|
|
curl -fs \
|
|
-X POST -H "Content-Type: application/json" \
|
|
-d "{\"authToken\":\"${password}\",\"hostname\":\"${domain}\",\"recordType\":\"A\",\"rrSetContents\":${contents},\"removeAllRecords\":\"true\"}" \
|
|
"https://secure.hosting.de/api/dns/v1/json/resourceRecordSetUpdate"
|