Simple DNS Server

Hi all!

So far, loving the support I’ve been getting from you guys. Here’s my next question:

I’m looking to set up Nameservers for my hosted websites. I want to be sure that my clients are able to easily purchase a package and then build a site without messing around with DNS server settings etc.

Now, I’ve read the very comprehensive guide / blog entry with regards to this, and it’s great… I will have no problem following these steps but I do have a couple of questions:

1. How do you create a backup NS to mirror the primary ones in CyberPanel?
2. Once the NS is set up, will they automatically propagate for newly created users / sites?

Question 1 is important, as I obviously would need to make sure that a copy of my DNS records are mirrored somewhere else in the event of an outage (e.g. emails must get delivered regardless and WHMCS will be hosted on another server).

Question 2 is critical, as your average Joe isn’t going to know they have to create zone files etc.

I basically want for the customer to only have to update NS’s at their DN provider (e.g. GoDaddy) and set them to “ns1.example.com” and “n2.example.com”.

A records for all of the domains and subdomains should be automatically created by the panel when the user adds it. Is this the case?

SIMPLE DNS SERVER QUESTION

At the moment, I am using Sentora, which basically auto-creates zone files upon domains being added (this is a WHMCS module checkbox). The thing is, for their NS’s to work, **_ALL _**I have to do is add 2 A records “ns1.example.com > 192.168.0.1” and the same thing with NS2.

The guide provided here is a lot more complex compared to the Sentora one.

In theory, the DNS server should pick up all NS lookups and redirect them to their respective records for any domain.

Thoughts / Solutions?

just did a quick googling

PowerDNS does support master/slave replication

so that’s the solution for your question1 and 2 , but the hard part is implement it…

@qtwrk So, what would you suggest to successfully create a proper NS server?

I’ll follow the steps in the guide today, but redundancy mirroring is quite important. Maybe there’s someone else who can make a lot of sense of this and create a guide / simply the process?

And… convert it to CentOS - although, I’m not sure if the Slave server needs to be running the same OS, maybe just the process / application.

Hi @qtwrk,

I’ve tried following the guide for setting up the Nameservers and so far no joy.

I’ve populated the records, set the custom NS’s on GoDaddy (as in the steps here: https://blog.cyberpanel.net/2018/02/24/how-to-register-private-name-servers-on-namecheap-or-godaddy-with-cyberpanel/).

Also, I need some sort of DNS template for anyone creating adding a domain to the site so that the most basic records are filled.

Let’s call this a “Default DNS Template” from hereon.

This Default DNS Template should automatically be assigned to all domains upon creation, where the @ points to the server’s IP and the www. being the CNAME. Also MX records which are configured for the CyberPanel setup either during domain creation or upon creating a mailbox in the panel.

Here’s what I created:

I then added a DNS Zone manually for the domain name untappedpotential.online

But this is still not working :frowning: Chrome fails to resolve the domain with “DNS_PROBE_FINISHED_NXDOMAIN”

I’ve force restarted the server and still nothing.

Can someone assist me with these points? This server has to be up, running and flawless by the end of the month as I’ve cancelled my current hosting.

Thanks,

Did you correctly set glue record for your domain ?

I do believe so. The NS’s are set to GoDaddy default:

The Private Nameservers are configured as per the guide:

And the domain I am using “UntappedPotential.Online” is set to the correct nameservers (ns1.alr-network.com / ns2.alr-network.com)

I have the DNS replication working.
I make the cyberpanel installations ‘Master’ and then I setup 3 slave PowerDNS servers geographically.
While the replication works, I find that I have to manually set the zone for each domains in to ‘type’ to ‘master’ via the cyberpanel database table domains.

Be nice to have some kind of switch to make cyberpanel the master so type is always set to Master for any new domains added.

Thanks,
John

In PowerDNS setup, what are the slave ips to be used when set to Master?

how to configure master and slave servers??? Help pl

@Altunkurt Backend implementation for PowerDNS replication is not completed yet, once it’s completed we will write documentation on how to configure.