MarvinMC MarvinMC Hosting

Set up hosting nameservers

Authoritative PowerDNS, private API access, delegation and glue records.

This operator guide connects authoritative DNS to the hosting panel. A registrar registers the domain; authoritative nameservers publish its DNS records.

Step by step

  1. Use dedicated DNS hosts with public addresses. Configure at least two reachable nameserver hostnames, preferably on independent nodes. Both UDP and TCP port 53 must be reachable.
  2. Install PowerDNS Authoritative with a persistent database backend. On Debian, the pdns-server and pdns-backend-sqlite3 packages provide a small installation. Follow the installed package’s database schema instructions.
  3. Enable api=yes, set a unique api-key and enable the webserver bound to a private or loopback address. Protect remote access with HTTPS and restrict it to the hosting panel. Never expose an unauthenticated API publicly.
  4. In Admin → Domains enter the API base URL, key, server ID (usually localhost) and nameserver hostnames. Enable managed DNS only after testing API connectivity. The API key is stored encrypted and is never given to customers.
  5. Create the nameserver A/AAAA records. When a nameserver is inside the domain it serves, register the required glue hosts and IP addresses with the parent registrar. Configure secondary replication or native database replication so all delegated nameservers serve the same zone.
  6. Test each nameserver directly with dig @NS_HOST example.net SOA and dig +tcp @NS_HOST example.net SOA. Then verify registry delegation and DNS responses from an external network.
apt install pdns-server pdns-backend-sqlite3 dnsutils

Check the result

The panel creates zones only for its registered domains. Customer API tokens have their own permissions and do not expose the PowerDNS administration key.

Important

Simply entering two hostnames does not deploy DNS servers or create registrar glue records. Do not delegate customer domains until the nameservers are reachable and synchronized.