Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Commit

Permalink
Fix dnslink.sh issue when creating new TXT record
Browse files Browse the repository at this point in the history
I had to tweak this script when testing it out on a new domain to use the property name `record_type` instead of `type` to get it to create a new TXT record where none previously exists. See https://developer.dnsimple.com/v1/domains/records/#create
  • Loading branch information
olizilla committed Jun 22, 2017
1 parent 7c42989 commit f9368bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dnslink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if [ -z "$record_id" ]; then
-H "X-DNSimple-Domain-Token: $DNSIMPLE_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d "{\"record\":{ \"name\":\"$RECORD_NAME\", \"type\":\"TXT\", \"content\":\"dnslink=/ipfs/$HASH\", \"ttl\":\"$RECORD_TTL\" }}" \
-d "{\"record\":{ \"name\":\"$RECORD_NAME\", \"record_type\":\"TXT\", \"content\":\"dnslink=/ipfs/$HASH\", \"ttl\":\"$RECORD_TTL\" }}" \
| jq -r '.record' \
&& printf "\\nIt looks like we're good: https://ipfs.io/ipns/$ZONE\\n"
else
Expand Down

0 comments on commit f9368bb

Please sign in to comment.