Control Web Panel

WebPanel => DNS => Topic started by: cfreire on April 09, 2025, 07:41:38 PM

Title: My webpanel as DNS server
Post by: cfreire on April 09, 2025, 07:41:38 PM
Hi dear group... I would like to set my webpanel server as a DNS server. I have set some domains in my webpanel server, but when I set the public IP of my server, as DNS IP in my windows PC... It does not ping to a my domains in Webpanel server.... Is it necessary any configuration additional to by default to achieve this objective please?

Thanks by your attention....
Title: Re: My webpanel as DNS server
Post by: overseer on April 09, 2025, 10:54:47 PM
I don't recommend trying to self-host DNS. At minimum, you need 2 static IP'd servers on separate subnets in order to be more resilient against DDoS attacks. Personally, I would recommend using Cloudflare for DNS, as they have the infrastructure to resist or mitigate those kinds of attacks. Plus, the geo-located servers are very responsive and replicate changes globally nearly instantly.
Title: Re: My webpanel as DNS server
Post by: cfreire on April 10, 2025, 02:38:49 PM
Hi, thank you by your recommendation. But if I want to use my webpanel server to be my own dns server how can I do it please?
Title: Re: My webpanel as DNS server
Post by: rcschaff on April 10, 2025, 03:29:52 PM
Hi, thank you by your recommendation. But if I want to use my webpanel server to be my own dns server how can I do it please?

Your first requirement is to setup your own nameservers.  Most Registar's call these either GLUE records or HOST records.  You need to log in and create at least 2 records (Ex ns1 and ns2). 

Then change the Nameservers in CWP to use your custom nameservers

I highly recommend a second server somewhere to host the second DNS server.
Title: Re: My webpanel as DNS server
Post by: Starburst on April 10, 2025, 09:33:50 PM
If hosted at NameCheap:
https://www.namecheap.com/support/knowledgebase/article.aspx/768/10/how-do-i-register-personal-nameservers-for-my-domain/ (https://www.namecheap.com/support/knowledgebase/article.aspx/768/10/how-do-i-register-personal-nameservers-for-my-domain/)

GoDaddy's is kinda weird, see:
https://starburst.help/f-a-q/hosting-information/dns-settings/registering-nameservers-for-your-godaddy-domain/ (https://starburst.help/f-a-q/hosting-information/dns-settings/registering-nameservers-for-your-godaddy-domain/)