This request will delete a DNS record on a domain.
| URL | https://api.telecomx.dk/dns/DOMAIN/record | ||
|---|---|---|---|
| Method | DELETE | ||
| Access level | MANAGER or OWNER if user belongs to the customer who owns the DNS. RESELLER if the employee belongs to a customer that belongs to the reseller. ADMIN. |
||
| Param | DOMAIN | String | Domain name. |
| Query | name | String | Current name. Do not include the domain name self. |
| type | String | Current record type: A, AAAA, CNAME, SRV, NS, TXT, MX. | |
| rData | String | Current points to data - depending on the type: A: IPv4 address, ex. '213.83.176.1' AAAA: IPv6 address, ex. '2001:db8:85a3:0:0:8a2e:370:7334' CNAME: Hostname, ex. 'www.telecomx.dk' SRV: name like '_service._proto.name.' and rData like 'priority weight port target.' NS: name server hostname, ex. 'ns1.telecomx.dk' TXT: string in quotes, ex. '“v=spf1 mx a ip4:213.83.176.0/23 a:mail.powernetmail.dk -all”' MX: Mail exchanger, type must be postfixed with a priority number, rData is a hostname, ex. 'mail.telecomx.dk' |
|
DELETE https://api.telecomx.dk/dns/telecomx.dk?name=mail&type=A&rData=1.2.3.4
| JSON object | ||
|---|---|---|
| success | Boolean | True on success |
{ success: true }
| Error code | Message | Description |
|---|---|---|
| 404 | not_found | DNS not found |
| 404 | records | Record not found |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |