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
wutanc
wutanc•13mo ago
You set the name servers to whatever host your dns. Then you configure the A/Cnames there
bluestreak711
bluestreak711OP•13mo ago
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.
wutanc
wutanc•13mo ago
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
bluestreak711
bluestreak711OP•13mo ago
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.
wutanc
wutanc•13mo ago
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
bluestreak711
bluestreak711OP•13mo ago
Porkbun is already pointing to cloudflare. Cloudflare is pointing to my public ip as an A record.
wutanc
wutanc•13mo ago
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
bluestreak711
bluestreak711OP•13mo ago
I already opened port 80 because my site would not be available outside my local network otherwise. Porkbun is a domain registrar.
wutanc
wutanc•13mo ago
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/
Jochem
Jochem•13mo ago
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
wutanc
wutanc•13mo ago
(but I'm also slightly paranoid when it comes to security and avoid opening any ports)
Jochem
Jochem•13mo ago
DNS takes a while to propagate
bluestreak711
bluestreak711OP•13mo ago
I already opened port 80 A ##thedomain## ##mypublidIP##
wutanc
wutanc•13mo ago
right, DNS can take up to 48 hours to propagate. Usually cloudflare is very fast tho
bluestreak711
bluestreak711OP•13mo ago
CNAME www ##thedomain##
wutanc
wutanc•13mo ago
you can use the tool dig to check your records tho
Jochem
Jochem•13mo ago
is that your actual domain?
wutanc
wutanc•13mo ago
to make sure that nameservers / DNS records is configured correctly
bluestreak711
bluestreak711OP•13mo ago
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
Jochem
Jochem•13mo ago
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
wutanc
wutanc•13mo ago
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
bluestreak711
bluestreak711OP•13mo ago
I removed it.
wutanc
wutanc•13mo ago
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
Jochem
Jochem•13mo ago
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
bluestreak711
bluestreak711OP•13mo ago
So I can mark this one solved and I can create a new chat to talk about that tunnel? 😉
Jochem
Jochem•13mo ago
that's the intended way to use this place, yup 😄 just add the solved tag
bluestreak711
bluestreak711OP•13mo ago
Stay Tuned... Give me about 120sec
wutanc
wutanc•13mo ago
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...
bluestreak711
bluestreak711OP•13mo ago
That comment is completely sus.
wutanc
wutanc•13mo ago
I'm not. Just trying to scare you a bit so that you'll not post your home IP next time
bluestreak711
bluestreak711OP•13mo ago
But I did not post my home ip. The website is proxied through cloudflare.
wutanc
wutanc•13mo ago
yeah yeah
Want results from more Discord servers?
Add your server