cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

DNS → Create domain alias

AI-generated

Summary

Create a domain alias (parked domain) for a specified cPanel user by associating it with an existing web virtual host domain on the server.

Inputs

  • Domain (required) — The domain name to park as an alias.
  • Username (required) — The cPanel user account under which the domain alias will be created.
  • Web Vhost Domain (required) — An existing web virtual host domain to which the new domain alias will be added. If not the user's main domain, the new domain will be treated as an addon domain.

Output shape

a single response object from the WHM API indicating success or failure of the domain alias creation.

The output shape corresponds to the WHM API response and may include status and error details if the operation fails.

Links

Discussion