This function sets the primary domain hosted on a dedicated IP address for an account and all of its domains. The primary domain refers to the virtual host that the server returns when a visitor directly accesses the IP address.
For example, if both
example2.com are name-based virtual hosts on IP address
192.168.0.1, the primary virtual host appears when the visitor accesses the
You cannot select a hostname that exists on the server's main shared IP address, which you configure with the The IPv4 address (only one address) to use to set up shared IPv4 virtual hosts option in WHM's Basic WebHost Manager Setup interface (WHM >> Home >> Server Configuration << Basic WebHost Manager Setup).
|A valid hostname.|
The type of virtual host to set as primary.
This value defaults to
This function only returns metadata.