Remove a DNS record
This request is used for deleting a DNS record for the domain.
The DNS record can be specified using the ID.
Request syntax
The request should be sent over the HTTPS protocol using the POST method.
POST /api2/admin/dns/del
Host: pddimp.yandex.ru
PddToken: <PDD token>
...
domain=<domain name>
&record_id=<record ID>
Headers:
Parameters:
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
record_id | Integer | ID of the DNS record. |
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
record_id | Integer | ID of the DNS record. |
POST /api2/registrar/dns/del
Host: pddimp.yandex.ru
PddToken: <PDD token>
Authorization: OAuth <OAuth token>
...
domain=<domain name>
&record_id=<record ID>
Headers:
Name | Description |
---|---|
PddToken | |
Authorization |
Name | Description |
---|---|
PddToken | |
Authorization |
Parameters:
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
record_id | Integer | ID of the DNS record. |
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
record_id | Integer | ID of the DNS record. |
Request example
POST /api2/admin/dns/del HTTP/1.1
Host: pddimp.yandex.ru
PddToken: 123456789ABCDEF0000000000000000000000000000000000000
...
domain=domain.com&record_id=1
cURL
curl -H 'PddToken: 123456789ABCDEF0000000000000000000000000000000000000' -d 'domain=domain.com&record_id=1' 'https://pddimp.yandex.ru/api2/admin/dns/del'
POST /api2/admin/dns/del HTTP/1.1
Host: pddimp.yandex.ru
PddToken: 123456789ABCDEF0000000000000000000000000000000000000
Authorization: OAuth 00123456789ABCDEF00000000000000000000000000000000000
...
domain=domain.com&record_id=1
cURL
curl -H 'PddToken: 123456789ABCDEF0000000000000000000000000000000000000' -H 'Authorization: OAuth 00123456789ABCDEF00000000000000000000000000000000000' -d 'domain=domain.com&record_id=1' 'https://pddimp.yandex.ru/api2/admin/dns/del'
Response structure
Name | Type of value | Description |
---|---|---|
domain | String | Name of the domain. |
record_id | Integer | ID of the DNS record. |
success | String | Status of request execution. Possible values:
|
error | String | Error code. Included in the response if the request resulted in an error. Possible values:
|
Name | Type of value | Description |
---|---|---|
domain | String | Name of the domain. |
record_id | Integer | ID of the DNS record. |
success | String | Status of request execution. Possible values:
|
error | String | Error code. Included in the response if the request resulted in an error. Possible values:
|