Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

add DNS interface #69

Closed
wants to merge 1 commit into from
Closed

add DNS interface #69

wants to merge 1 commit into from

Conversation

vyzo
Copy link

@vyzo vyzo commented Apr 12, 2021

No description provided.

@vyzo vyzo requested review from lidel and aschmahmann April 12, 2021 10:33
@vyzo vyzo force-pushed the feat/custom-resolver branch from 0e8a477 to 01c3f9c Compare April 12, 2021 10:36
@lidel lidel mentioned this pull request Apr 12, 2021
9 tasks
@@ -43,6 +43,9 @@ type CoreAPI interface {
// PubSub returns an implementation of PubSub API
PubSub() PubSubAPI

// DNS returns an implementation of DNS API
DNS() DNSAPI
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Stebalien do we want to expose a DNS API in the CoreAPI? It seems like it's not really the intention as the CoreAPI is supposed to deal with how an IPNS node functions not just acting as a wrapper around all low level go-ipfs commands.

@vyzo the alternative to using the CoreAPI in your go-ipfs PR would be to just define the function on the IpfsNode and use cmdenv.GetNode(env, req) instead of GetApi

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also note that we can make the DNS api wider, we have a couple of more methods that would be useful to expose -- LookupIPAddr for straight up dns resolution and Resolve for multiaddr resolution.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really don't think we want to expose this as it has nothing to do with IPFS.

@vyzo vyzo closed this Apr 12, 2021
@ipfs ipfs deleted a comment from welcome bot Apr 12, 2021
@lidel lidel deleted the feat/custom-resolver branch April 26, 2021 21:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants