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

Commit f9368bb

Browse files
authored
Fix dnslink.sh issue when creating new TXT record
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
1 parent 7c42989 commit f9368bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/dnslink.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if [ -z "$record_id" ]; then
3636
-H "X-DNSimple-Domain-Token: $DNSIMPLE_TOKEN" \
3737
-H "Accept: application/json" \
3838
-H "Content-Type: application/json" \
39-
-d "{\"record\":{ \"name\":\"$RECORD_NAME\", \"type\":\"TXT\", \"content\":\"dnslink=/ipfs/$HASH\", \"ttl\":\"$RECORD_TTL\" }}" \
39+
-d "{\"record\":{ \"name\":\"$RECORD_NAME\", \"record_type\":\"TXT\", \"content\":\"dnslink=/ipfs/$HASH\", \"ttl\":\"$RECORD_TTL\" }}" \
4040
| jq -r '.record' \
4141
&& printf "\\nIt looks like we're good: https://ipfs.io/ipns/$ZONE\\n"
4242
else

0 commit comments

Comments
 (0)