Browse Source

GoDaddy API change requires JSON array to add TXT records

The GoDaddy API now strictly requires any array when
adding a single TXT record.
pull/660/head
Timothe Litt 8 years ago
parent
commit
b57cad3345
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      dns_scripts/dns_godaddy

+ 3
- 3
dns_scripts/dns_godaddy View File

@ -1,8 +1,8 @@
#!/bin/bash
# Copyright (2017) Timothe Litt litt at acm _dot org
# Copyright (C) 2017,2018) Timothe Litt litt at acm _dot org
VERSION="1.0.1"
VERSION="1.0.2"
PROG="`basename $0`"
# This script is used to update TXT records in GoDaddy DNS server
@ -209,7 +209,7 @@ if [ "$op" = "add" ]; then
url="$API/$domain/records/TXT/$name"
request='{"data":"'$data'","ttl":'$ttl'}'
request='[{"data":"'$data'","ttl":'$ttl'}]'
[ -n "$DEBUG" ] && cat >&2 <<EOF
Add request to: $url
--------


Loading…
Cancel
Save