Skip to content

[Feature] Built-in DNS Server Management (PowerDNS) #12262

@jakub961241

Description

@jakub961241

1Panel Version

v2.1.5

Please describe your needs or suggestions for improvements

1Panel has no DNS zone management. Hosting providers need to manage DNS records for client domains. Currently this
requires external DNS services or manual configuration outside the panel.

Proposed Solution

Integrate PowerDNS (or Bind9) as a Docker container with panel UI.

UI Features

  • DNS zones (add/remove domains)
  • DNS records (A, AAAA, CNAME, MX, TXT, NS, SRV, CAA)
  • Auto-populate A record (→ server IP) when creating a website
  • Auto-add MX records when enabling mail for a domain
  • SOA and TTL configuration
  • Secondary/slave DNS support

API Endpoints

  • POST /api/v1/dns/domains - create DNS zone
  • POST /api/v1/dns/domains/:id/records - add record
  • PUT /api/v1/dns/domains/:id/records/:rid - update record
  • DELETE /api/v1/dns/domains/:id/records/:rid - delete record
  • GET /api/v1/dns/domains/:id/records - list all records

Use Case

When automating hosting provisioning via API:

  1. Website created ✅ (works)
  2. SSL provisioned ✅ (works)
  3. Database created ✅ (works)
  4. DNS zone setup ❌ (not possible)
  5. Email account ❌ (not possible)

Please describe the solution you suggest

No response

Additional Information

No response

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions