Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS Lookup redirect doesn't work for IPNS #82

Closed
Kubuxu opened this issue Feb 16, 2016 · 4 comments
Closed

DNS Lookup redirect doesn't work for IPNS #82

Kubuxu opened this issue Feb 16, 2016 · 4 comments

Comments

@Kubuxu
Copy link
Member

Kubuxu commented Feb 16, 2016

Try: http://ipns.kubuxu.ovh or http://www.kubuxu.ovh

@lidel
Copy link
Member

lidel commented Feb 16, 2016

I am running go-ipfs 0.4.0-dev-d3b467f and HTTP API used by the addon for dns lookups does not return IPFS paths for your domains:

> curl http://127.0.0.1:8080/api/v0/dns/www.kubuxu.ovh
{"Message":"Could not resolve name (recursion limit exceeded).","Code":0}

> dig +short TXT ipns.kubuxu.ovh @8.8.8.8
"dnslink=/ipns/QmdKbeXoXnMbPDfLsAFPGZDJ41bQuRNKALQSydJ66k1FfH/"
> curl http://127.0.0.1:8080/api/v0/dns/ipns.kubuxu.ovh
{"Message":"Could not resolve name (recursion limit exceeded).","Code":0}

> dig +short TXT ipns.kubuxu.ovh @8.8.8.8
"dnslink=/ipns/QmdKbeXoXnMbPDfLsAFPGZDJ41bQuRNKALQSydJ66k1FfH/"

Compare it with working ones (both new and old syntax work fine):

> curl http://127.0.0.1:8080/api/v0/dns/ipfs.git.sexy
{"Path":"/ipfs/QmVyS3iAy7mvDA2HqQWm2aqZDcGDH3bCRLFkEutfBWNBqN"}

> dig +short TXT ipfs.git.sexy @8.8.8.8
"QmVyS3iAy7mvDA2HqQWm2aqZDcGDH3bCRLFkEutfBWNBqN"

> curl http://127.0.0.1:8080/api/v0/dns/ipfs.io
{"Path":"/ipfs/QmNu7McSMSi3vp6avTZrgW6MKdgeDkGjJGY6W5zPjnh9Xg"}

> dig +short TXT ipfs.io @8.8.8.8
"dnslink=/ipfs/QmNu7McSMSi3vp6avTZrgW6MKdgeDkGjJGY6W5zPjnh9Xg"

Not sure what is the problem,
the only difference I see is / at the end of your dnslink definitions.

Try removing it. If it does not help, close this one and fill an issue at go-ipfs/issues.

@lidel lidel added the invalid label Feb 16, 2016
@lidel lidel closed this as completed Feb 20, 2016
@lidel
Copy link
Member

lidel commented Feb 20, 2016

I closed it, but out of curiosity, what was the problem, @Kubuxu ?

@Kubuxu
Copy link
Member Author

Kubuxu commented Feb 20, 2016

I didn't figure it out, it just started working, possibly my DNS didn't propagate or was cached.

@lockedshadow
Copy link

lockedshadow commented Oct 4, 2016

I'm not sure, but it seems that this issue is related to ipfs/kubo#1350.
At least, redirecting doesn't work for me too, if the TXT-record contains IPNS link.

Maybe as workaround should use resolve instead of dns? This method returns correct value for IPNS dnslinks too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants