Closed bonds closed 6 years ago
For a little background, browser extension uses /api/v0/dns/
for dnslink lookups.
Basic troubleshooting is to check if both public and your local gateway return the same result:
Right now both return this error for your FQDN:
{"Message":"Could not resolve name (recursion limit exceeded).","Code":0}
It looks like the source of problem is IPNS path in your dnslink (most of sites use static IPFS path).
May be a bug in go-ipfs
.
cc @Kubuxu
Based on the example:
https://github.com/ipfs/examples/tree/master/examples/websites
it seems an IPNS path in my dnslink was at least intended to work at some point. It works on the command line:
~/Downloads ❯❯❯ ipfs --debug name resolve -r ggr.com Mon 2017-10-09 12:09:19 -0700
14:09:29.683 INFO cmd/ipfs: IPFS_PATH /home/scott/.ipfs main.go:301
14:09:29.687 DEBUG cmd/ipfs: calling pre-command hooks... main.go:295
14:09:29.687 DEBUG cmd/ipfs: executing command via API main.go:332
/ipfs/QmWqNxbUnGZzmLeyA8jMi1VeyuHpBcYDYH9WcYZY31zijk
but only if I pass in the -r
, without it I get the same error as with the api call through the browser:
~/Downloads ❯❯❯ ipfs --debug name resolve ggr.com Mon 2017-10-09 14:10:30 -0700
14:11:28.500 INFO cmd/ipfs: IPFS_PATH /home/scott/.ipfs main.go:301
14:11:28.500 DEBUG cmd/ipfs: calling pre-command hooks... main.go:295
14:11:28.500 DEBUG cmd/ipfs: executing command via API main.go:332
Error: Could not resolve name (recursion limit exceeded).
So...should I file a bug on go-ipfs do you think?
I wonder if the api doesn't recurse by default, reminds me of: https://github.com/ipfs/go-ipfs/issues/4167
Here's the setup that works for me (and behaves nicely with the UI
# dig -t txt +short ipfs.mydomain.com
"dnslink=/ipns/#KEY_REDACTED"
# ipfs name resolve -r ipfs.mydomain.com
/ipfs/#KEY_REDACTED#
Fix from https://github.com/ipfs/go-ipfs/issues/4293#issuecomment-416310364 will be introduced when #558 is merged.
I have a DNS TXT entry for ggr.com:
Yet, when I visit https://ggr.com using Firefox 56.0 on OpenBSD 6.1-stable-amd64 with ipfs-companion 0.4.11-dev I am NOT redirected to the IPFS version of the site as I had hoped/expected I would be.
I have HSTS enabled on ggr.com. I have more than one TXT DNS entry. I wonder if one of those is causing problems. In any case, even though its an experimental feature, I figured a 100% repro example problem case might be useful.