Post Domain Setup Hook / Script

PanelAlpha currently supports post-install scripts, which are very useful for automation. A similar post domain setup (or domain change) hook would be extremely valuable.

This hook would be triggered after a domain is added, updated, or replaced on an instance. Ideally, the script would expose contextual variables such as:

  • Previous domain (if applicable)
  • New domain
  • Domain type (primary / alias / addon)
  • Instance ID
  • User ID and/or user email
  • Event type (add / update / remove)

Use cases

  1. Third-party DNS automation
    Enables seamless integration with any external DNS provider (via API or custom logic) without waiting for official integrations to be released.

  2. External SMTP provider synchronization
    When a domain is changed, the same domain often needs to be added or verified with an external SMTP service (SPF, DKIM, domain verification). A post-domain hook would allow this to be automated instantly.

  3. DNS-less panel workflows
    For setups where DNS management is not handled by the panel, the hook can trigger an automated email to the end user containing the required DNS records and configuration details immediately after the domain change.

  4. Custom provisioning and compliance workflows
    This could include logging, auditing, security checks, copyright checks, or triggering internal automation pipelines tied to domain lifecycle events.

A post domain setup hook would significantly improve extensibility and automation capabilities, especially for advanced hosting providers and SaaS-style deployments.

Thank you for the feedback. We’ll look into this soon. We definitely need to catch up with webhooks in our system in general.

1 Like