DNS API

Domains · Manage DNS for domains on Mynymbox nameservers from the new client panel, or with a personal API token.

The client panel can edit DNS in the browser and through a JSON API. Both talk to the same zone. The domain must be active and on Mynymbox DNS (dns.mynymdns.me and dns.mynymdns.st).

Base URL:

https://panel.mynymbox.io/api/v1

Activate Mynymbox DNS

Do this once per domain before the API will accept record changes.

  1. Log in to the client panel.
  2. Open DNS Management.
  3. Click Manage DNS on the domain.
  4. If the zone is not on our nameservers yet, click Activate Mynymbox DNS. That sets nameservers at the registrar and creates the zone.

If you registered the domain elsewhere, set the nameservers to dns.mynymdns.me and dns.mynymdns.st at that registrar first. See Nameservers and DNS Management.

GET /api/v1/domains shows dns_managed: true when the API can write records. Otherwise record calls return 409.

You can still add, edit, and delete records in the panel under DNS records. Use @ for the zone apex. SOA is managed for you.

Create a token

  1. In the panel, open Settings.
  2. Under API access, enter your account password and click Create API token.
  3. Copy the token immediately. It is shown once.

The token looks like mnba_…. Send it on every request:

Authorization: Bearer mnba_YOUR_TOKEN

Creating a new token replaces the previous one. Treat it like a password.

DANGER Do not put the token in a public repository, a ticket, or a screenshot. If it leaks, replace it in Settings.

List domains

curl -sS -H "Authorization: Bearer mnba_YOUR_TOKEN" \
  https://panel.mynymbox.io/api/v1/domains
{
  "data": [
    {
      "name": "example.com",
      "status": "active",
      "dns_managed": true,
      "expires_at": "2027-04-01"
    }
  ]
}

List records

curl -sS -H "Authorization: Bearer mnba_YOUR_TOKEN" \
  https://panel.mynymbox.io/api/v1/domains/example.com/dns
{
  "domain": "example.com",
  "types": ["A", "AAAA", "ANAME", "CAA", "CNAME", "DS", "DYNAMIC", "HTTPS", "MX", "NAPTR", "NS", "OPENPGPKEY", "PTR", "REDIRECT", "SRV", "SSHFP", "SVCB", "TLSA", "TXT"],
  "data": [
    {"name": "example.com", "type": "A", "content": "203.0.113.10", "ttl": 3600, "prio": null}
  ]
}

SOA is omitted. Record types match the panel editor. Formats: DNS Record Management.

Add one record

POST and DELETE are limited to 30 requests per minute.

curl -sS -X POST \
  -H "Authorization: Bearer mnba_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"www","type":"A","content":"203.0.113.10","ttl":3600}' \
  https://panel.mynymbox.io/api/v1/domains/example.com/dns

MX (prio is the priority, content is the mail host):

curl -sS -X POST \
  -H "Authorization: Bearer mnba_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"@","type":"MX","content":"mail.example.com","prio":10,"ttl":3600}' \
  https://panel.mynymbox.io/api/v1/domains/example.com/dns

TXT (plain text; do not wrap it in extra quotes):

curl -sS -X POST \
  -H "Authorization: Bearer mnba_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"@","type":"TXT","content":"v=spf1 include:_spf.example.com ~all"}' \
  https://panel.mynymbox.io/api/v1/domains/example.com/dns

A successful create returns 201 and the full record list.

Delete one record

Name, type, and content must match an existing row:

curl -sS -X DELETE \
  -H "Authorization: Bearer mnba_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"www","type":"A","content":"203.0.113.10"}' \
  https://panel.mynymbox.io/api/v1/domains/example.com/dns

Replace the whole zone

PUT replaces every editable record. Send the complete list you want to keep.

curl -sS -X PUT \
  -H "Authorization: Bearer mnba_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"records":[
    {"name":"@","type":"A","content":"203.0.113.10","ttl":3600},
    {"name":"www","type":"CNAME","content":"example.com","ttl":3600}
  ]}' \
  https://panel.mynymbox.io/api/v1/domains/example.com/dns

DANGER {"records":[]} deletes all editable records. GET the zone first, edit the array, then PUT.

Record fields

Field Required Notes
name yes @ or empty = the domain. www becomes www.example.com. A full name must stay inside the zone.
type yes One of the types from GET.
content yes Value for that type (IPv4 for A, hostname for MX/CNAME, URL for REDIRECT). Max 4096 characters.
ttl no 60–86400 seconds. Default 3600.
prio no MX and SRV priority (0–65535).

ANAME is an apex alias. DYNAMIC is an A record. REDIRECT stores an https:// URL.

A PTR in this API is a forward-zone PTR (inside your domain). Reverse DNS for a VPS IP is set in VirtFusion, not here. See PTR records (rDNS).

Errors

HTTP Meaning
401 Missing or invalid token.
403 Domain is not active, or this source IP is not allowed.
404 Domain is not in your account.
409 Mynymbox DNS is not active on the domain.
422 Validation failed (type, name, or content).
429 Rate limit. All /api/v1 calls: 60/minute. POST/DELETE DNS: 30/minute.
502 The DNS backend could not apply the change. Retry, then open a ticket.

All errors return JSON with a message field.

If you get 403 with API access denied for this IP, the token is valid but the source address is blocked. Call from the network you expect, or open a ticket.