DocsNetworking & DNSManaging DNS Records
Networking & DNS

Managing DNS Records

Create, update and delete DNS records.

Add a record via API

bash
curl -X POST https://api.wasaacloud.com/api/domains/DOMAIN_ID/records \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "A",
    "name": "@",
    "value": "196.201.10.4",
    "ttl": 300
  }'

Common record examples

Point your root domain to your VPS and create a www subdomain:

bash
# Root domain → VPS IP
{ "type": "A", "name": "@", "value": "196.201.10.4", "ttl": 300 }

# www subdomain → same IP
{ "type": "A", "name": "www", "value": "196.201.10.4", "ttl": 300 }

# api subdomain → different server
{ "type": "A", "name": "api", "value": "196.201.10.8", "ttl": 300 }

# Email → MX record
{ "type": "MX", "name": "@", "value": "mail.example.com", "priority": 10, "ttl": 3600 }
← Previous
Domains & DNS
Next →
Load Balancers

Was this article helpful?

Need more help? Open a support ticket

On this page

Add a record via API
Common record examples
Get support