Skip to content

Subdomain Manager for Pterodactyl

Subdomain Manager is an addon for the Pterodactyl panel. It is for hosting providers who manage one or more domains at Cloudflare and want their customers to give a server a name such as myserver.example.com without opening a ticket. The server owner picks a name, a domain and an allocation in the panel, and the addon creates the DNS records at Cloudflare.

What it does

  • Subdomains tab for every server. Server owners and permitted subusers create, update and delete subdomains under Subdomains in the server view.
  • DNS records at Cloudflare. For each subdomain the addon sends a record template to Cloudflare. The default template creates an A record and a _minecraft._tcp SRV record that points to the chosen allocation's port.
  • Record template per domain. You can edit the template of each domain as JSON, for example to create other record types or another SRV service name.
  • Domains limited by egg. Each domain is offered only to servers that use one of the eggs you select for it.
  • Limit per server. One setting defines how many subdomains a server may have. The default is 5.
  • Word blacklist. Names on a comma-separated list cannot be registered.
  • Clean-up. Deleting a subdomain removes its records from Cloudflare. Deleting a server or a domain queues a job that removes the records of all its subdomains.
  • Subuser permissions. Four permissions (subdomains.read, subdomains.create, subdomains.update, subdomains.delete) control what subusers may do.
  • Application API. Four endpoints let a billing system list domains, check a name, create a subdomain and delete it.
  • Activity log. Creating, updating and deleting a subdomain in the panel is written to the server's activity log.

Requirements

  • Pterodactyl Panel v1.11. The addon's README names this version.
  • Shell access to the panel, because you copy files, edit seven panel files and rebuild the front end.
  • Node.js and Yarn on the panel host for the front-end build.
  • A running panel queue worker. Records of deleted servers and domains are removed by a queued job.
  • A Cloudflare account that manages your domain, and a Cloudflare API token that may edit DNS records in that zone.

Pages

  • Installation: copy the files, edit the panel files, run the commands, update and remove the addon.
  • Configuration: Cloudflare token, limit, blacklist, domains, record template and permissions.
  • Usage: what you and your customers see, which records are created and when they are removed, and the API.
  • FAQ: common questions and error messages.