addzonerecord function from within your custom script:
/xml-api/addzonerecord function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/addzonerecord
addzonerecord function from within your custom script:
/json-api/addzonerecord function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/addzonerecord
example.com
example.com.
127.0.0.1
IN, for "Internet."
ns1.example.com
0 is the highest priority.
user.example.com rather than user@example.com
A, CNAME, NS, etc.
| Record type | Required variables | Optional variables |
|---|---|---|
| A | zone, address, type |
class, ttl |
| MX | zone, exchange, preference, type |
class, ttl |
| CNAME | zone, cname, type |
class, ttl |
| NS | zone, nsdname, type |
class, ttl |
addzonerecord function. 1 — true.
0 — false.
https://example.com:2087/xml-api/addzonerecord?zone=example.com&name=example.com.&address=127.0.0.1&type=A in WebHost Manager will produce output similar to:
<addzonerecord>
<result>
<status>1</status>
<statusmsg>Wrote zone file.</statusmsg>
</result>
</addzonerecord>
https://example.com:2087/json-api/addzonerecord?zone=example.com&name=example.com.&address=127.0.0.1&type=A in WebHost Manager will produce output similar to:
{
"result":[
{
"status":1,
"statusmsg":"Wrote zone file."
}
]
}
Copyright © cPanel 2000-2009.