How to configure DNS for AWS VPS servers

If you're looking to create a DNS server very simply and do not want to overwrite your primary domain's Nameservers, with the ones hosted by CyberPanel, here's how you can do it.

This process basically takes less than 5 minutes and will allow you to point secondary domains to the "nameservers" that will be held in CyberPanel, without changing the actual nameservers of your primary domain.

Why should I do this?

Let's say, ABC.com is your primary domain. Maybe you have CyberPanel set up on "panel.abc.com" and a bunch of other services, such as Emails, other websites and subdomains for ABC.com hosted somewhere else, or even in CyberPanel.

It's a risk to update the nameservers of ABC.com and point them to CyberPanel, as if something were to go wrong with your CyberPanel installation, all records associated with ABC.com, your emails, websites and even the panel itself, would stop working.

So, in this case, I recommend creating a "Super Simple Nameserver", where the primary domain (ABC.com) is still set to the Registrars (or your current) nameservers. Let's use GoDaddy for an example.

How do I do this?

ABC.com is hosted on GoDaddy's nameservers. Typically that's "ns123.domaincontrol.com" and "ns321.domaincontrol.com" for example.

This means all of your records for ABC.com are accessible by changing the DNS settings on GoDaddy. Because GoDaddy are a major domain name provider, we can probably trust that they have multiple backups, meaning any chance of a complete DNS outage, is very unlikely.

This is perfect, because we're going to add some records for ABC.com, which will be used for your secondary domain's Nameservers.

For the sake of this guide, our secondary domain will be 123.com.

We will set up the 123.com nameservers to be "ns1.ABC.com" and "ns2.ABC.com". Meaning, that all traffic going to 123.com will need to perform a nameserver lookup at one of the two ABC.com nameservers that we are creating.

We'll use 123.456.789.101 as the fictional IP address for the server that CyberPanel is installed on.

Create the required A Records

  • Login to ABC.com's Domain Provider account (GoDaddy.com)
  • Add 2 new "A" Records to your domain:
  • NS1.ABC.COM and NS2.ABC.COM

A record

  • Point those domains to the IP address of CyberPanel

  • Save the changes.

Your DNS Records should look something like this:

DNS records

 

For more details please refer to this article https://forums.cyberpanel.net/discussion/257/super-simple-nameserver-creation

  • 0 Users Found This Useful
Was this answer helpful?