Domains

Add DNS record

Add a DNS record to a domain you own (PowerDNS-hosted zones).

post/v1/domains/{domain_id}/dns/records

Request

  • Base URL: https://developers.servera.co.uk
  • URL: https://developers.servera.co.uk/v1/domains/{domain_id}/dns/records
  • Auth: HTTP bearer

Path parameters

domain_idinteger required

Domain id (from GET /domains).

Request body

namestring required

Record name/subdomain, or '@' for the apex. Letters, digits and '-', '_', '.', '*' only.

type'A' | 'AAAA' | 'CNAME' | 'MX' | 'TXT' | 'SRV' | 'CAA' required
contentstring required
ttlinteger
priorityinteger nullable

Example request

{
  "content": "185.209.139.4",
  "name": "api",
  "ttl": 3600,
  "type": "A"
}

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.