Created
October 24, 2023 01:10
-
-
Save SgtPooki/922e85ddb1741a7d7c74c033f07aae39 to your computer and use it in GitHub Desktop.
We want to output a list of IPFS links for all the domains using dig and return only the strings that match "dnslink=/ipfs/Qm..."
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
for domain in "blog.ipfs.tech" "blog.libp2p.io" "consensuslab.world" "docs.ipfs.tech" "docs.libp2p.io" "drand.love" "fil.org" "filecoin.io" "green.filecoin.io" "ipfs.tech" "ipld.io" "libp2p.io" "n0.computer" "probelab.io" "protocol.ai" "research.protocol.ai" "singularity.storage" "specs.ipfs.tech" "strn.network" "web3.storage"; do | |
# We want to output a list of IPFS links for all the DOMAINS using dig | |
# and return only the strings that match "dnslink=/ipfs/QmbKWyoaCK9nKDfSsNAkJQrbxMDLriyyqkXsTSSwt9B227" | |
dig +noall +answer TXT "_dnslink.${domain}" | ggrep -oP '/ipfs/[^"]+' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment