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

IPFS gateway redirect fails for HTTP redirects #663

Closed
da2x opened this issue Jan 21, 2019 · 3 comments
Closed

IPFS gateway redirect fails for HTTP redirects #663

da2x opened this issue Jan 21, 2019 · 3 comments

Comments

@da2x
Copy link

da2x commented Jan 21, 2019

DNS zone for example.com:
_dnslink TXT "dnslink=/ipfs/hash"

  1. Enable DNSLink check before HTTP request
  2. Visit a website that redirects from say example.com to www.example.com. The domain has DNSLink setup at the apex but not at the www subdomain.

Expected: Should redirect to local gateway.

Actual: Redirects to www.example.com and stays on the web.

Real-world example: https://nakhan.net/

@da2x da2x changed the title IPFS gateway fails for HTTP redirects IPFS gateway redirect fails for HTTP redirects Jan 21, 2019
@lidel
Copy link
Member

lidel commented Jan 25, 2019

Neither https://nakhan.net/ nor https://www.nakhan.net/ resolve valid DNSLink:

@da2x are you sure the website is set up correctly?
There are no TXT records defining DNSLink atm:

$ dig +noall +answer TXT _dnslink.nakan.net
$ dig +noall +answer TXT nakan.net
$ dig +noall +answer TXT www.nakan.net

If you want to see valid dnslink, check dig +noall +answer TXT _dnslink.docs.ipfs.io

ps. we are planning to stop redirecting DNSLink websites by default, see (B) of #667 – feedback/ideas will be appreciated.

@da2x
Copy link
Author

da2x commented Jan 25, 2019

He must have removed them. I contacted him about another issue with his DNSLink setup and it seems he just removed it instead of addressing it.

@lidel
Copy link
Member

lidel commented Jan 25, 2019

Fair enough.

I assume its misconfiguration or slow propagation similar to #659 so closing this, but free to reopen if it is possible to reproduce :)

@lidel lidel closed this as completed Jan 25, 2019
@lidel lidel added the invalid label Jan 25, 2019
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

2 participants