Self Hosting / Cloudflare Proxy / What Namesevers...?
I am self hosting a website using xampp apache. In cloudflare, my A name record is set and my CName record is set. Now what do I use for name servers?
When I use hosting elsewhere, name servers are typically provided and point to my website.
The purpose of this is proof of concept, experience and testing new projects. I do not want my domain to point directly to my domestic ip. I want to have cloudflare in between.
33 Replies
You set the name servers to whatever host your dns. Then you configure the A/Cnames there
Porkbun has Cloudflare's name servers. Cloud flare has my public domestic ip and the proper Cname record.
It has been long set up that my connection is port forwarded, so that when the apache web server is running, I can access the website by typing my public IP.
My ISP is spectrum. I cannot find name servers for spectrum. I found two DNS servers for Spectrum, but I cannot add that record in cloudflare without a proper "name" to coincide with each name server.
I feel like you've missunderstood the setup for this. Your ISP should have nothing to dowith this
I would suggest that you read up on how it's all working and then make another try
I have already setup a website using somebody else for web hosting. This time, I am hosting projects myself using my personal computer. So yes, it does require my domestic public ip for that.
Well, it doesn't actually require your domestic public IP and I would strongly suggest against doing it that way. But if you want to solve it that way you still don't need your ISPs name server
you need your domains nameservers to point to Cloudflare
Wherever you domain is registered you want to add cloudflare as the name servers. Then set up the DNS records in cloudflare.
You then point cloudflare to your home IP
Porkbun is already pointing to cloudflare.
Cloudflare is pointing to my public ip as an A record.
but again, I really would suggest against opening up port 80/443 on your home IP
My suggestion would be to use a cloudflare tunnel instead
I don't know what Porkbun is
I already opened port 80 because my site would not be available outside my local network otherwise.
Porkbun is a domain registrar.
Well then, you're all set up...
But again, I would suggest against opening port 80 on your local network and look at other solutions instead. Cloudflare offers a way to open a tunnel for example that can be used
https://www.cloudflare.com/en-gb/products/tunnel/
as long as you put your public IP in your domain host's DNS admin panel as a cname / a record, the only other thing you need to do is wait
(but I'm also slightly paranoid when it comes to security and avoid opening any ports)
DNS takes a while to propagate
I already opened port 80
A
##thedomain##
##mypublidIP##
right, DNS can take up to 48 hours to propagate. Usually cloudflare is very fast tho
CNAME
www
##thedomain##
you can use the tool
dig
to check your records thois that your actual domain?
or this site https://mxtoolbox.com/
to make sure that nameservers / DNS records is configured correctly
I didn't wait long enough. I didn't change anything else and it is working now. It is about 14-16 hours since I first set it up.
Yep
then it's working just fine
may want to remove that domain from this chat now just in case. Having an open port on your home network is one thing, having it searchable for people you might piss off at some point is another
And again, please don't forward a xampp setup to the internet, and please don't open ports in your firewall. Use a tunnel instead
I removed it.
It's still visiable above
for what it's worth, you've now showed all of discord your hope IP. Imho that's some what scary
this one too
I mean, they have mine now too, I clicked the link 🙂
it's a good idea to keep xampp updated very judiciously though
So I can mark this one solved and I can create a new chat to talk about that tunnel? 😉
that's the intended way to use this place, yup 😄
just add the solved tag
Stay Tuned... Give me about 120sec
rocky mistake
never click links. They're scary
either of you might currently be scaning each other for known router exploits...
and I'm absolutely not scaning both of you...
That comment is completely sus.
I'm not. Just trying to scare you a bit so that you'll not post your home IP next time
But I did not post my home ip. The website is proxied through cloudflare.
yeah yeah