Skip to main content
100%

Update an IPFS record in Cloudflare DNS

✓ Published0🌍 Public
Aandrewxhill
Last edited Apr 21, 2019
Created on Apr 21, 2019

This shell script shows how to update an IPFS DNSLink record through the Cloudflare API. It retrieves the zone ID for a specified domain, finds the existing `_dnslink` TXT record, and updates its content to point to a new IPFS hash. The script uses `curl` for HTTP requests, `jq` for parsing JSON responses, and relies on environment variables like `PAGES_CLOUDFLARE_EMAIL`, `PAGES_CLOUDFLARE_API_KEY`, `PAGES_DOMAIN_NAME`, and `PAGES_IPFS_RECORD` for configuration. It outputs progress messages and confirms the updated webpage URL.

AI-generated description

Similar vizzes