domain_add_dns ()
Create new record in DNS zone.
HTTP Method: | GET | |
---|---|---|
Parameters: | sid | session id* |
domain_id | unique id of selected domain* | |
HTTP Method: | POST | |
Parameters: | name | name of record* |
ttl | TTL value of record* | |
type | type of record* | |
ip | value of DNS record* | |
priority | priority of record | |
Returns: | HTTP code | 200 (OK) |
reply | answer is empty | |
HTTP code | 400 (Bad request) | |
invalid_values | array of invalid values with error messages |
CURL
curl -d"name=%name%&ttl=%ttl%&type=%type%&ip=%ip%&priority=%priority%" "https://admin.systems90.cz/api/domain_add_dns?sid=%sid%&domain_id=%domain_id%"
PHP Library
$api->domain_add_dns(
array(
'domain_id' => %domain_id%,
),
array(
'name' => %name%,
'ttl' => %ttl%,
'type' => %type%,
'ip' => %ip%,
'priority' => %priority%,
)
);
Example of data output
<?xml version="1.0" encoding="UTF-8"?>
<reply>
<status>
<code>0</code>
<text>OK</text>
</status>
<dns_id>1234567</dns_id>
</reply>