---
title: "CyberPanel DNS Server Configuration"
description: "The Domain Name System (DNS) connects websites, email, and additional network services to a domain. That includes external applications like Shopify, Gmail, and the Sucuri web application firewall..."
url: https://www.inmotionhosting.com/support/edu/cyberpanel/cyberpanel-dns-server/
date: 2022-08-04
modified: 2022-08-04
author: "InMotion Hosting Contributor"
categories: ["CyberPanel"]
type: post
lang: en
---

# CyberPanel DNS Server Configuration

![CyberPanel DNS Server Configuration](https://www.inmotionhosting.com/support/wp-content/uploads/2022/08/cyberpanel-dns-server-configuration-1024x538.jpg)

The Domain Name System (DNS) connects websites, email, and additional network services to a domain. That includes external applications like Shopify, Gmail, and the Sucuri web application firewall (WAF). Below we’ll cover how to manage CyberPanel DNS server settings.

- [Configure Default Nameservers](#default)
  - [Create a Custom Nameserver Record](#nameserver)
  - [Cloudflare Integration](#cloudflare)
- [Configure the CyberPanel DNS Server](#dns)
  - [Create a DNS Zone](#zone)

## Configure Default Nameservers

You should set default nameservers before adding websites. Otherwise, CyberPanel will assign nameserver (NS) records with nonexistent hostnames.

1. [Log into CyberPanel](https://www.inmotionhosting.com/support/product-guides/cloud-server/install-cyberpanel/#login).
2. On the left, select **DNS** > **Config Default Nameservers**. ![Set default nameserver records in CyberPanel](https://www.inmotionhosting.com/support/wp-content/uploads/2022/08/cyberpanel-nameservers-default.png)
3. Type up to four NS records (e.g. ns1.inmotionhosting.com and ns2.inmotionhosting.com).
4. **Save** changes.

DNS changes may take up to 48 hours to [propagate](https://www.inmotionhosting.com/support/domain-names/dns-nameserver-changes/complete-guide-to-dns-records/#propagation).

### Create a Custom Nameserver Record

Your CyberPanel DNS server can create custom nameservers for a domain. This is popular among web hosting resellers for whitelabeling hosting services.

1. On the left, select **DNS** > **Create Nameserver**.![Create nameserver records in CyberPanel](https://www.inmotionhosting.com/support/wp-content/uploads/2022/08/cyberpanel-nameserver-create-1024x489.png)
2. Type the domain name.
3. Add the first nameserver hostname.
4. Enter the hostname IP address.
5. Add the second NS record.
6. Enter the second IP address.
7. Select **Create Nameserver**.
8. Create [glue records](https://www.inmotionhosting.com/support/domain-names/dns-nameserver-changes/how-to-set-up-custom-nameservers-for-reseller-server/#activate-ns-with-registrar).

### Cloudflare Integration

Cloudflare is a popular content delivery network (CDN) with a feature-rich free version. CyberPanel has the ability to synchronize DNS changes so you don’t need to log into Cloudflare to update records as well. Note that DNS changes in Cloudflare will not be pushed to CyberPanel DNS zones.

1. [Log into Cloudflare](https://www.inmotionhosting.com/support/website/setting-up-cloudflare/).
2. In the upper-right corner, select the user icon > **My Profile.**
3. On the left, select **API Tokens**.![Cloudflare API keys](https://www.inmotionhosting.com/support/wp-content/uploads/2022/08/cloudflare-api-keys-1024x210.png)
4. Under “API Keys,” select **View** on the right of “Global API Key.”
5. Enter your password to get your API token key.
6. In CyberPanel on the left, select **DNS** > **CloudFlare**.![Integrate Cloudflare in CyberPanel](https://www.inmotionhosting.com/support/wp-content/uploads/2022/08/cyberpanel-dns-cloudflare.png)
7. Enter the email address for your Cloudflare account.
8. Enter the Cloudflare API token.
9. Select the drop-down menu to “Sync local Records to Cloudflare” and **Enable**.
10. Select **Save**.

### Configure the CyberPanel DNS Server

We cover how to edit DNS records in CyberPanel below.

1. On the left, select **DNS** > **Add/Delete Records**.
2. Select a domain from the drop-down menu to view DNS records.![Edit A records in CyberPanel](https://www.inmotionhosting.com/support/wp-content/uploads/2022/08/cyberpanel-dns-zone-edit-1024x315.png)
3. Create an **A** record by typing the name, time-to-live (TTL) in seconds, and IP address.
4. Select **Add** to save the DNS record below.
5. After changing existing A records in the list below, select the blue save icon on the right to apply changes.
6. Create **AAAA** records if you have IPv6 addresses (InMotion Hosting does not provide IPv6 addresses).
7. Select **CNAME** to modify DNS records such as “www” aliases.
8. Select **MX** to update mail exchange records for external email hosting.
9. Edit the **TXT** subsection includes DMARC, DKIM, SPF, and ownership verification records (the SPF record from the SPF tab has been deprecated for years) if necessary.
10. Edit **NS** records to determine the authoritative DNS servers for records related to the domain if necessary.
11. Modify the [**SOA**](https://www.inmotionhosting.com/support/domain-names/soa-record/) record only if required.

The SRV record identifies systems that host specific services. The CAA record verifies certificate authority for SSL certificates. Neither is commonly implemented by small businesses.

### Create a DNS Zone

The **DNS** > **Create DNS Zone** feature is generally for adding a domain that only needs DNS management or email hosting from your web server. It doesn’t create a home directory for the domain.

The **Create DNS Zone** did not work while testing CyberPanel version 2.3. If you need to manage a domain from the CyberPanel VPS, consider [transferring the domain to your InMotion Hosting account](https://www.inmotionhosting.com/support/domain-names/transfer-domain-name-to-inmotion-hosting/).

You can remove DNS zones within the **DNS** > **Delete Zone** section.

Continue learning about how to get the most out of your [CyberPanel server](https://www.inmotionhosting.com/support/edu/cyberpanel/).

With our [Cloud Server Hosting](https://www.inmotionhosting.com/cloud-vps), you can deploy a lightning-fast, reliable cloud platform with built-in redundancy – ensuring the availability of your environment!
