[solved] IPFS Distributed Web Gateway returning "404 page not found"

At the bottom of the page https://www.cloudflare.com/distributed-web-gateway/ there are instructions for “Connecting Your Website”.

I believe I have followed them correctly, but when I go to the CNAME address the server responds 404 page not found:

[email protected]:~$ wget https://gun.warehouseman.com/
--2019-08-27 22:16:57--  https://gun.warehouseman.com/
Resolving gun.warehouseman.com (gun.warehouseman.com)... 104.18.253.167, 104.18.254.167, 104.18.252.167, ...
Connecting to gun.warehouseman.com (gun.warehouseman.com)|104.18.253.167|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-08-27 22:16:58 ERROR 404: Not Found.

[email protected]:~$ 

The direct IPFS link through CloudFlare works:

[email protected]:$ wget https://cloudflare-ipfs.com/ipfs/Qmd7vRT8t3ggSLSEMq9NLd2dg2bnNwGbBaiUP4viSQCbtz/
--2019-08-27 22:21:15--  https://cloudflare-ipfs.com/ipfs/Qmd7vRT8t3ggSLSEMq9NLd2dg2bnNwGbBaiUP4viSQCbtz/
Resolving cloudflare-ipfs.com (cloudflare-ipfs.com)... 104.18.254.167, 104.18.64.168, 104.18.255.167, ...
Connecting to cloudflare-ipfs.com (cloudflare-ipfs.com)|104.18.254.167|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html’

index.html                                  [ <=>                                                                            ]     181  --.-KB/s    in 0s      

2019-08-27 22:21:15 (1.36 MB/s) - ‘index.html’ saved [181]

[email protected]:$ 

My DNS settings seem correct from my reading of the instructions:

[email protected]:~$ dig -t txt _dnslink.warehouseman.com
        :             :             :             :            :
;; ANSWER SECTION:
_dnslink.warehouseman.com. 299	IN	TXT	"dnslink=/ipfs/Qmd7vRT8t3ggSLSEMq9NLd2dg2bnNwGbBaiUP4viSQCbtz"
        :             :             :             :            :

[email protected]:~$ dig gun.warehouseman.com
        :             :             :             :            :
;; ANSWER SECTION:
gun.warehouseman.com.	299	IN	CNAME	cloudflare-ipfs.com.
cloudflare-ipfs.com.	299	IN	A	104.18.64.168
cloudflare-ipfs.com.	299	IN	A	104.18.255.167
        :             :             :             :            :

[email protected]:~$

If someone could spot my mistake here I would be very grateful.

Thanks!

Hah! Just figured it out!

My _dnslink had to be …

_dnslink.gun.warehouseman.com

… not …

_dnslink.warehouseman.com

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.