Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Include Page | ||||
---|---|---|---|---|
|
Description
Excerpt |
---|
This function creates a DNS zone. |
This function also adds an XDNS entry for the domain in the following locations:
- The
/var/cpanel/users/USER
file, whereUSER
represents thetrueowner
parameter's value. - The
/etc/vdomainaliases/DOMAIN
directory, whereDOMAIN
represents the new zone's domain. - The
/etc/vfilters/DOMAIN
directory, whereDOMAIN
represents the new zone's domain.
When you call this function, the system uses the domain name and IP address that you supply. WHM's standard zone template determines all other zone information.
This function generates the DNS zone's MX record , domain PTR , and A records automatically.
Multiexcerpt include SpaceWithExcerpt com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@12665 MultiExcerptName APIDisabledDNSRole PageWithExcerpt LIB:_ServerRoleDisabledAPI
Panel | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Examples
|
Parameters
Parameter | Type | Description | Possible values | Example |
---|---|---|---|---|
domain | string | Required The new zone's domain. | A valid domain name on the server. | example.com |
ip | string | Required The domain's IP address. | A valid IP address. | 192.168.0.20 |
template | string | The zone file template. If you do not use this parameter, the function uses the |
| standard |
trueowner | string | The new zone's owner. This parameter defaults to the currently-logged in cPanel or WHM user's username. | A valid cPanel or WHM username. | user |
Returns
This function only returns metadata.
Panel | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function information
About WHM API 1
Find a function
Related functions
|