Notes: Feature request: add link type `/dns/<domain name>`

Created on 9 Mar 2018  路  10Comments  路  Source: ipfs/notes

How about we change /ipns/<domain name> into /dns/<domain name>?
The syntax /ipns/<domain name> is really confusing.
Related: https://github.com/ipfs/ipfs-update/issues/80#issuecomment-370313268

Most helpful comment

why not use /dnslink instead of /dns? Since multiformats/go-multiaddr-dns/pull/17 is a thing it seems quite confusing to use /dns to resolve dnslink, and /dnslink is intuitive to me at least.

All 10 comments

~So, I believe /dns/domain.name used to resolve to a mulitaddr (location/address). We've since moved to /dnsaddr/domain.name. However, I don't know the history behind /ipns/domain.name.~

edit: apparently I'm wrong. It used to be /dns. I'm not sure why it changed.

It's not the Domain Name System, it's the Interplanetary Name System, that's why.

IPNS maps public keys to paths. That is, /ipns/QmMyKey... can map to /ipfs/QmMyFile. However, here we're using the /ipns prefix for DNSLink. That is, /ipns/ipfs.io. DNSLink is a completely separate system with different security guarantees.

It is fair to say that in the future there will be more resolvers than PeerID-based IPNS and DNSLink-based mainstream DNS. This year alone I've been asked about support for OpenNIC tlds, namecoin, ENS, Handshake etc.

Are there any prior discussions about how we are going to handle more than two resolvers? I've only found https://github.com/ipfs/go-ipfs/issues/3942 about pluggable ipns resolvers, but nothing solid when it comes to path-addressing.

cc @lgierth @kyledrake

IMO, we should use different namespaces.

@lgierth do you remember the story behind /dns/{website_with_dnslink} ?
(why we went with /ipns/{website_with_dnslink} etc)

why not use /dnslink instead of /dns? Since multiformats/go-multiaddr-dns/pull/17 is a thing it seems quite confusing to use /dns to resolve dnslink, and /dnslink is intuitive to me at least.

I agree: /dnslink is clear and removes ambigouity about the purpose of the namespace.

It also matches existing /dnsaddr quite nicely.

@Stebalien @aschmahmann - solving old problems?

Solving old problems...

/dnslink is the correct way forward.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alanshaw picture alanshaw  路  5Comments

jbenet picture jbenet  路  3Comments

hackergrrl picture hackergrrl  路  5Comments

pgte picture pgte  路  5Comments

pgte picture pgte  路  4Comments