Search code examples
ipfs

How are name clashes avoided for IPFS DNSLINK?


https://docs.ipfs.io/guides/concepts/dnslink/

I think ipns uses a hash of your public peer id or something to create unique namespaces. I see no comment about how this works for DNSLink. What are the subspaces for DNSLink? If there is a global namespace as the documents suggest, how is this handled?


Solution

  • If I understand your question correctly, you ask how we handle DNSLink and IPNS on the same namespace when resolving /ipns/{value}.

    In go-ipfs 0.4.23 we check if value is a valid Peer ID (see spec), if not, check if value is a FQDN with a DNSLink record.