DNS Manager

The DNS Manager lets you host DNS zones directly on your server. You can create zones, add records, and edit them without leaving the panel.

Before you can host a zone, your domain needs glue records pointing to your server. This is a one-time setup at your domain registrar, covered below.

Setup

To host DNS for a domain, three pieces must line up:

  1. Glue records at your registrar, mapping your nameserver hostnames to your server's IP
  2. PowerDNS settings in the panel, telling the nameserver what hostnames to advertise
  3. Nameservers at the registrar, pointing the domain you want to host to your nameservers

Warning

If you have firewall enabled in the panel, don't forget to open port 53 on it, with the protocol set to Any.

Steps 1 and 2 are one-time. Step 3 happens for every domain you want the panel to serve DNS for.

1. Add Glue Records at Your Registrar

Glue records tell the internet where your nameservers live. Without them, a domain pointing to ns1.nexpanel.dev has no way to find the IP of ns1.nexpanel.dev itself.

Example, using nexpanel.dev as the domain and 159.195.108.214 as the server IP:

  • Nameserver 1: ns1.nexpanel.dev → 159.195.108.214
  • Nameserver 2: ns2.nexpanel.dev → 159.195.108.214

Both point to the same server. Two hostnames is convention, not a requirement for redundancy when both serve from the same machine.

At Porkbun (Example)

  1. Open your domain in the Porkbun dashboard
  2. Click Glue Records
  3. Under Hostname, enter ns1 (the .nexpanel.dev part is added automatically)
  4. Under IP Addresses, enter 159.195.108.214
  5. Click Submit
  6. Repeat for ns2

The exact menu differs by registrar. Look for "Glue Records", "Host Records", "Custom Name Servers", or similar. Every registrar has this feature, they just name it differently.

Note

Glue records are required only when your nameservers use a subdomain of the domain they serve. ns1.nexpanel.dev is a subdomain of nexpanel.dev, so glue is needed. If your nameservers were on a different domain (e.g. ns1.example.net serving nexpanel.dev), the parent domain's nameservers would resolve them and glue would not be needed here.

2. Configure PowerDNS in the Panel

Open the Services page, find PowerDNS under System, and click the settings icon.

PowerDNS settings

Fill in:

  • Nameserver Domain - the base domain your nameservers live under. For example, nexpanel.dev
  • Nameserver 1 - the first nameserver hostname. For example, ns1.nexpanel.dev
  • Nameserver 2 - the second nameserver hostname. For example, ns2.nexpanel.dev
  • Default TTL - how long resolvers cache records by default. 300 (5 minutes) is a good starting point for domains you are still setting up. Increase it later once things are stable

Click Save.

These names show up as the NS records in every zone you create, so they must match what you configured at the registrar in step 1.

3. Point the Domain at Your Nameservers

This step is only needed for the specific domain you want the panel to host DNS for. It is not part of the initial setup.

In your registrar, open the domain you want to serve with panel DNS (for example, nexpanel.dev if you want to move its DNS to the panel) and set its nameservers to:

  • ns1.nexpanel.dev
  • ns2.nexpanel.dev

The names must match what you entered in PowerDNS settings. Once the registrar saves the change, the domain starts asking your server for records.

Then create the zone in the panel. The next sections cover that.

Propagation

After the nameservers are updated at the registrar, DNS changes can take up to 48 hours to propagate globally. Usually it takes minutes, not hours. Two tools to check:

  • dig nexpanel.dev NS +short - should list ns1.nexpanel.dev and ns2.nexpanel.dev
  • dig nexpanel.dev A +short - should return the A record from your zone

If the NS query returns the old nameservers after a day, the registrar change has not propagated or was not saved correctly.

Zone List

The main page lists every DNS zone hosted on the server. Each entry shows:

  • Domain - the zone name, for example example.com
  • Type - zone type like native
  • Records - number of records in the zone

Click any zone to open its record list.

Adding a Zone

Click Add Zone at the top of the page.

Add zone

Enter the domain name without www or http://. For example:

  • example.com - correct
  • www.example.com - incorrect (use example.com)
  • http://example.com - incorrect

Click Create. NexPanel creates the zone and adds two default records:

  • An NS record pointing to your server's nameserver
  • An SOA record that defines the zone's authority

Zone Records

Opening a zone shows its records in a table. Each record has:

  • Name - the hostname part, for example @ for the root, www, or a subdomain
  • Type - the record type (A, AAAA, CNAME, MX, TXT, and others)
  • Content - the value the record resolves to
  • TTL - how long resolvers cache the record

Each row has two actions:

  • Edit - open the record in the same drawer used to add new records, with the current values loaded. Change any field and save
  • Delete - remove the record from the zone

Editing is useful when:

  • Updating an A record to point to a new IP
  • Changing the mail server in an MX record
  • Adding more text to a TXT record (for example, extending an SPF entry)

Saving an edit replaces the record in place. The zone reloads immediately and resolvers pick up the new value based on the record's TTL.

Adding a Record

Click Add Record inside a zone.

Add record

Fields:

  • Name - the subdomain part. Use @ for the root domain, www for a www subdomain, and so on
  • Type - the DNS record type. Common types:
    • A - IPv4 address
    • AAAA - IPv6 address
    • CNAME - alias to another hostname
    • MX - mail server
    • TXT - arbitrary text, used for SPF, DKIM, verification
    • NS - nameserver delegation
    • SRV - service location records for protocols like SIP, XMPP, and Minecraft
    • CAA - certificate authority authorization, restricts which CAs can issue certificates for the domain
    • PTR - reverse DNS, maps an IP back to a hostname
    • SSHFP - SSH host key fingerprints, published for SSHFP verification
    • HTTPS - HTTPS service hints, publishes supported protocols and ports for HTTPS
  • Content - the value. For A records, an IP address. For CNAME records, a hostname. For MX records, a mail server hostname
  • TTL - how long resolvers cache this record. 300 (5 minutes) is a common default.

Click Add to create the record. Changes take effect as soon as the server's nameserver reloads, usually within seconds.

Notes

  • The nameserver hostnames you configure in PowerDNS must match the glue records at your registrar. If they differ, the domain will not resolve
  • NexPanel runs a nameserver on the server. It must be reachable from the public internet on port 53 for queries to resolve
  • Changes propagate based on TTL. Lower TTL values make changes appear faster but increase query volume
  • Deleting a zone removes all of its records. This does not affect the domain's registration, only its DNS resolution

Warning

If your domain's nameservers point to this server and you delete the zone, the domain stops resolving. Recreate the zone or change the nameservers to another provider to restore it.

Last updated: November 2, 2026