I give up. Been trying since yesterday evening to use a domain to access my home server.
Before I signed up with cloudflare, I was using Godaddy. I had a Dynamic DNS and it worked as you would expect. typing in my domain dwperk.com would send me to my router’s login page as I did not have a webserver configured yet.
So my next step is to create a reverse proxy. And it was recommended that I use cloudflare because it was easier than godday to make dns changes and was more secure. OK, created an account, changed the nameservers on my domain, and walla, dns records appear in cloudflare. pinged the domain and I get cloudflare IP because dns was proxied. Expected result. enter domain into browser, get to my routers login page. woohoo!
So I proceed with next steps
Created a dynamic DNS to point to cloud flare. log say its it working.
used a docker container (swag) containing letsencrypt and nginx. Created the port forwarding on my router, changed the necessary config files for nextcloud. Created a new cname in cloudflare and proceed to test my work. entering cloud.dwperk.com, returns ‘Site cannot be reached’. So I try www.dwperk.com, same error.
OK, so I ping cloud.dwperk.com & www.dwperk.com, and they resolved back to the cloudflare ip. I then changed the dns records from Proxied to DNS only. www.dwperk.com works, but not cloud.dwperk.com.
Thinking I did something wrong along the way, I undo everything including removing the port forwarding in my router. OK, pinging still good, but entering the domain in the browser is getting mixed results. sometimes it works, sometimes it doesn’t. Same is true with entering the IP address.
so I setup the webserver, forward the ports in my router and put in a generic index.html and I can see the page in browser from 3 different devices. one is my personal laptop on my home network using chrome incognito mode. The other is a work laptop using a vpn to the office, but on my network, using ie. The 3rd is my phone with wifi turned off.
I get ready to start adding subdomains and configuring apps. each small step along the way, I would keep trying to access dwperk.com. It worked sporadically but mostly I would get failures. ‘This site can’t be reached’ ‘No data transferred’, or the Cloudflare page showing that it all works on their end except at the server.
At this point it, it is a complete failure, nothing works. even typing the ip address doesn’t work. Every docker that was modified for this process has been removed and all related files were deleted through linux using the ‘rm -r’ command. So there shouldn’t be any residual config file somewhere hosing me up.
The only change ever made in the router was to forward the http and https ports. They are removed. So I should be seeing my routers login page. But I do not. Pinging still resolves.
The only thing left for me to try is to create a time machine and stay with godaddy. Which I think might be easier. Time for someone smarter than me to give me things to check.