WAPI – WEDOS DNS

On this pagedns-domains-listdns-domain-infodns-domain-adddns-domain-updatedns-domain-deletedns-domain-axfr-rundns-domain-axfr-tsigdns-domain-copydns-domain-commitdns-rows-listdns-row-detaildns-row-adddns-row-updatedns-row-delete

This article describes the WAPI commands for the WEDOS DNS service. WAPI setup, authentication and troubleshooting are covered in WAPI – Manual. The full list of codes is in WAPI – Return Codes. NSSET commands are described in WAPI – NSSET.

This article covers the following commands:

General information

  • Identifiers: parameter names and values in JSON (name, domain, type, search…) must be used exactly as shown in this article.
  • Common codes: any command can return the following codes, which are not repeated for each command:
    • 2100 – required parameter missing
    • 2101 – invalid parameter value
    • 2007 – the request exceeds the maximum size (4 KB by default)
    • 5001 – internal login error
  • Several domains at once: dns-domain-info, dns-domain-add, dns-domain-update, dns-domain-delete and dns-domain-axfr-tsig accept several domains in the name parameter, separated by commas.
    • At most 100 domains in one request; more returns code 2340.
    • The overall response then always has code 1000.
    • The result for each domain (code, result) is listed with that domain.
  • Commit: changes to a domain and its records are sent to the DNS servers with dns-domain-commit. If you do not send it, the system sends the changes automatically 5 minutes after the last change.
  • Test mode: a request with "test": 1 validates the input parameters and changes nothing.

dns-domains-list

Use dns-domains-list to get a list of your domains in DNS. You can filter, sort and page through the list.

Parameters

  • search = text to search for in the domain name (optional). The search is case-sensitive.
  • status = filter by status: active or disabled (optional)
  • type = filter by type: primary or secondary (optional)
  • page = page number (optional, default 1)
  • page_limit = domains per page (optional). If omitted or 0, 1000 is used.
  • orderby = sorting (optional, default domain asc): domain or created_date, optionally followed by asc or desc (e.g. created_date desc)

Return codes

  • 1000 = OK

Response data

  • domain = list of domains:
    • name = domain name
    • type = domain type (primary / secondary)
    • status = domain status (active / disabled)
  • total = total number of domains after filtering
  • page = number of the returned page
  • page_limit = domains per page used

Templates

JSON request:

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-domains-list",
    "clTRID": "your request id",
    "data": {
      "search": "domain",
      "status": "active",
      "type": "primary",
      "page": 1,
      "page_limit": 50,
      "orderby": "created_date desc"
    }
  }
}

JSON response (OK):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-domains-list",
    "data": {
      "domain": [
        {
          "name": "domain.tld",
          "type": "primary",
          "status": "active"
        }
      ],
      "total": "1",
      "page": 1,
      "page_limit": 50
    }
  }
}

dns-domain-info

Use dns-domain-info to get information about one or more domains in DNS.

Parameters

  • name = domain name, or several names separated by commas (required)

Return codes

  • 1000 = OK
  • 2201 = unsupported TLD
  • 2202 = invalid domain name
  • 2340 = maximum number of domains in one request exceeded
  • 3222 = the domain could not be loaded
  • 3223 = the domain belongs to another customer account
  • 3305 = the domain is locked
  • 3306 = the domain is deleted

Response data

The domain details are in the domain item.

Single domain:

  • domain is an object.
  • On error, the response contains only the code, without data.

Several domains:

  • domain is an array.
  • The overall code is always 1000.
  • A domain that could not be loaded has only name, code and result.

Common items:

  • name = domain name
  • status = domain status
  • type = domain type (primary / secondary)
  • tlock = domain lock
  • autocommit = automatic sending of changes
  • axfr_enabled = outgoing AXFR allowed (0/1)
  • axfr_ips = list of IP addresses allowed for outgoing AXFR
  • axfr_tsig_enabled = TSIG key required for outgoing AXFR (0/1)
  • axfr_tsig_name, axfr_tsig_alg, axfr_tsig_key = name, algorithm and value of the TSIG key for outgoing AXFR
  • changed = the domain has unsent changes (0/1)
  • changed_date = time of the last change
  • commit_date = time of the last commit
  • reload_pending = waiting to be sent to the DNS servers (0/1)
  • reload_pending_date = time when waiting started
  • reload_date = time of the last sending to the DNS servers
  • disabled_date = time the domain was disabled
  • enabled_date = time the domain was enabled
  • add_date = time the domain was added

Primary domain only:

  • rname = zone administrator email from the SOA record
  • serial, refresh, retry, expire, minimum = SOA record values
  • rr_cnt = number of records
  • ns_out = type of the domain’s DNS servers
  • ns = list of the domain’s DNS servers

Secondary domain only:

  • primary_ip = IP address of the primary DNS server
  • primary_tsig_enabled = TSIG for transfers from the primary server (0/1)
  • primary_tsig_name, primary_tsig_alg, primary_tsig_key = name, algorithm and value of the primary server’s TSIG key
  • axfr_last = time of the last transfer attempt
  • axfr_last_success = time of the last successful transfer
  • axfr_last_update = time the zone was last changed by a transfer
  • axfr_next_run = time of the next transfer
  • serial = zone serial number

Templates

JSON request (single domain):

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-domain-info",
    "clTRID": "your request id",
    "data": {
      "name": "domain.tld"
    }
  }
}

JSON response (OK, primary domain):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-domain-info",
    "data": {
      "domain": {
        "name": "domain.tld",
        "status": "active",
        "type": "primary",
        "tlock": "0",
        "autocommit": "0",
        "axfr_enabled": "1",
        "axfr_ips": ["203.0.113.10", "203.0.113.11"],
        "axfr_tsig_enabled": "1",
        "axfr_tsig_name": "key name",
        "axfr_tsig_alg": "hmac-sha256",
        "axfr_tsig_key": "Base64 key value",
        "changed": "0",
        "changed_date": "YYYY-MM-DD HH:MM:SS",
        "commit_date": "YYYY-MM-DD HH:MM:SS",
        "reload_pending": 0,
        "reload_pending_date": "YYYY-MM-DD HH:MM:SS",
        "reload_date": "YYYY-MM-DD HH:MM:SS",
        "disabled_date": null,
        "enabled_date": "YYYY-MM-DD HH:MM:SS",
        "add_date": "YYYY-MM-DD HH:MM:SS",
        "rname": "hostmaster.domain.tld",
        "serial": "2026010101",
        "refresh": "10800",
        "retry": "1800",
        "expire": "1209600",
        "minimum": "3600",
        "rr_cnt": "12",
        "ns_out": "DNS server type",
        "ns": ["ns.wedos.net", "ns.wedos.eu", "ns.wedos.com", "ns.wedos.cz"]
      }
    }
  }
}

The domain part for a secondary domain (instead of the SOA items, rr_cnt, ns_out and ns):

{
  "domain": {
    "name": "domain.tld",
    "status": "active",
    "type": "secondary",
    "primary_ip": "203.0.113.53",
    "primary_tsig_enabled": "1",
    "primary_tsig_name": "key name",
    "primary_tsig_alg": "hmac-sha256",
    "primary_tsig_key": "Base64 key value",
    "axfr_last": "YYYY-MM-DD HH:MM:SS",
    "axfr_last_success": "YYYY-MM-DD HH:MM:SS",
    "axfr_last_update": "YYYY-MM-DD HH:MM:SS",
    "axfr_next_run": "YYYY-MM-DD HH:MM:SS",
    "serial": "2026010101"
  }
}

JSON request (two domains):

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-domain-info",
    "clTRID": "your request id",
    "data": {
      "name": "domain1.tld, domain2.tld"
    }
  }
}

JSON response (domain1.tld OK, domain2.tld error):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-domain-info",
    "data": {
      "domain": [
        {
          "name": "domain1.tld",
          "status": "active",
          "type": "primary",
          "rr_cnt": "12"
        },
        {
          "name": "domain2.tld",
          "code": 3222,
          "result": "Domain open failed"
        }
      ]
    }
  }
}

In the actual response, domain1.tld has all the items shown in the single-domain example.


dns-domain-add

Use dns-domain-add to add a new domain, or several domains at once, to DNS.

Parameters

  • name = domain name, or several names separated by commas (required)
  • type = domain type: primary or secondary (optional, default primary)
  • axfr_enabled = allow outgoing AXFR: 0 or 1 (optional, default 0)
  • axfr_ips = IP addresses allowed for outgoing AXFR (required if axfr_enabled = 1). Enter them as a string of addresses separated by spaces, or as an object {"ip": ["address1", "address2"]}. The whole list can be at most 255 characters.
  • template_id = ID of the template used to create the domain (optional, primary only)
  • primary_ip = IPv4 address of the primary DNS server (required for secondary)
  • primary_tsig_enabled = TSIG for transfers from the primary server: 0 or 1 (optional, secondary only)
  • primary_tsig_name = TSIG key name (required if TSIG is enabled, secondary only)
  • primary_tsig_alg = TSIG key algorithm (required if TSIG is enabled, secondary only): hmac-md5, hmac-sha1, hmac-sha224, hmac-sha256, hmac-sha384 or hmac-sha512
  • primary_tsig_key = TSIG key value (required if TSIG is enabled, secondary only)

Return codes

  • 1000 = OK
  • 2201 = unsupported TLD
  • 2202 = invalid domain name
  • 2301 = invalid type value
  • 2302 = primary_ip missing
  • 2303 = invalid primary_ip (must be an IPv4 address)
  • 2304 = invalid axfr_enabled value
  • 2322 = the account’s DNS domain limit has been reached
  • 2323 = template not found
  • 2324 = a template can only be used for a primary domain
  • 2325 = the account has no template
  • 2330 = incomplete or invalid TSIG settings
  • 2331 = invalid TSIG key name
  • 2332 = invalid TSIG key algorithm
  • 2333 = invalid TSIG key value
  • 2340 = maximum number of domains in one request exceeded
  • 2341 = the request would exceed the maximum number of domains in the account
  • 2355 = invalid IP address in axfr_ips
  • 2366 = the axfr_ips list is longer than 255 characters
  • 2367 = axfr_enabled is 1 but axfr_ips is missing
  • 3302 = the domain could not be added
  • 3303 = the domain already exists in DNS

Response data

Single domain:

  • domain_id = domain ID in DNS
  • name = domain name

On error, the response contains only the code, without data.

Several domains: data is an array with code, result, name and domain_id for each domain.

Templates

JSON request (primary domain):

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-domain-add",
    "clTRID": "your request id",
    "data": {
      "name": "domain.tld",
      "axfr_enabled": 1,
      "axfr_ips": "203.0.113.10 203.0.113.11",
      "template_id": "template ID (optional)"
    }
  }
}

JSON request (secondary domain):

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-domain-add",
    "clTRID": "your request id",
    "data": {
      "name": "domain.tld",
      "type": "secondary",
      "primary_ip": "203.0.113.53",
      "primary_tsig_enabled": 1,
      "primary_tsig_name": "key name",
      "primary_tsig_alg": "hmac-sha256",
      "primary_tsig_key": "Base64 key value"
    }
  }
}

JSON response (OK, single domain):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-domain-add",
    "data": {
      "domain_id": "domain ID",
      "name": "domain.tld"
    }
  }
}

JSON response (several domains):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-domain-add",
    "data": [
      {
        "code": 1000,
        "result": "OK",
        "name": "domain1.tld",
        "domain_id": "domain ID"
      },
      {
        "code": 3303,
        "result": "WDNS domain exists",
        "name": "domain2.tld",
        "domain_id": null
      }
    ]
  }
}

dns-domain-update

Use dns-domain-update to change domain settings in DNS: outgoing AXFR for a primary domain, or the primary server and TSIG for a secondary domain. Parameters you omit stay unchanged.

Parameters

  • name = domain name, or several names separated by commas (required)
  • axfr_enabled = allow outgoing AXFR: 0 or 1 (optional). If you enter 1 without axfr_ips, the already saved IP addresses are used.
  • axfr_ips = IP addresses allowed for outgoing AXFR, as a space-separated string or an object {"ip": [...]} (optional)
  • primary_ip = IPv4 address of the primary DNS server (required for a secondary domain on every update)
  • primary_tsig_enabled = TSIG for transfers from the primary server: 0 or 1 (optional, secondary only)
  • primary_tsig_name = TSIG key name (optional, secondary only)
  • primary_tsig_alg = TSIG key algorithm (optional, secondary only)
  • primary_tsig_key = TSIG key value (optional, secondary only)

Enter all three TSIG parameters (name, algorithm, key) together; otherwise the values saved for the domain are used. Incomplete settings return 2330.

Return codes

  • 1000 = OK
  • 2201 = unsupported TLD
  • 2202 = invalid domain name
  • 2302 = primary_ip missing (secondary domain)
  • 2303 = invalid primary_ip (must be an IPv4 address)
  • 2304 = invalid axfr_enabled value
  • 2305 = axfr_enabled is 1 but the domain has no axfr_ips
  • 2306 = invalid axfr_ips format
  • 2330 = incomplete or invalid TSIG settings
  • 2331 = invalid TSIG key name
  • 2332 = invalid TSIG key algorithm
  • 2333 = invalid TSIG key value
  • 2340 = maximum number of domains in one request exceeded
  • 3222 = the domain could not be loaded
  • 3223 = the domain belongs to another customer account
  • 3304 = the domain update failed
  • 3305 = the domain is locked
  • 3306 = the domain is deleted

Response data

  • Single domain: the command returns no data.
  • Several domains: data is an array with code, result and name for each domain.

Templates

JSON request (primary domain):

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-domain-update",
    "clTRID": "your request id",
    "data": {
      "name": "domain.tld",
      "axfr_enabled": 1,
      "axfr_ips": "203.0.113.10 203.0.113.11"
    }
  }
}

JSON request (secondary domain):

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-domain-update",
    "clTRID": "your request id",
    "data": {
      "name": "domain.tld",
      "primary_ip": "203.0.113.53",
      "primary_tsig_enabled": 1,
      "primary_tsig_name": "key name",
      "primary_tsig_alg": "hmac-sha256",
      "primary_tsig_key": "Base64 key value"
    }
  }
}

JSON response (OK, single domain):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-domain-update"
  }
}

JSON response (several domains):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-domain-update",
    "data": [
      {
        "code": 1000,
        "result": "OK",
        "name": "domain1.tld"
      },
      {
        "code": 1000,
        "result": "OK",
        "name": "domain2.tld"
      }
    ]
  }
}

dns-domain-delete

Use dns-domain-delete to delete a domain from DNS, including all its records.

Parameters

  • name = domain name, or several names separated by commas (required)

Return codes

  • 1000 = OK
  • 2201 = unsupported TLD
  • 2202 = invalid domain name
  • 2340 = maximum number of domains in one request exceeded
  • 3222 = the domain could not be loaded
  • 3223 = the domain belongs to another customer account
  • 3301 = the domain could not be deleted
  • 3305 = the domain is locked
  • 3306 = the domain is deleted

Response data

  • Single domain: the command returns no data.
  • Several domains: data is an array with code, result and name for each domain.

Templates

JSON request:

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-domain-delete",
    "clTRID": "your request id",
    "data": {
      "name": "domain1.tld, domain2.tld"
    }
  }
}

JSON response (OK, single domain):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-domain-delete"
  }
}

JSON response (several domains):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-domain-delete",
    "data": [
      {
        "code": 1000,
        "result": "OK",
        "name": "domain1.tld"
      },
      {
        "code": 1000,
        "result": "OK",
        "name": "domain2.tld"
      }
    ]
  }
}

dns-domain-axfr-run

Use dns-domain-axfr-run to schedule an immediate AXFR zone transfer of a secondary domain from the primary server. The transfer runs within a few minutes. Without this command, transfers follow the REFRESH and RETRY values in the SOA record.

Parameters

  • name = domain name (required)

Return codes

  • 1000 = OK
  • 2201 = unsupported TLD
  • 2202 = invalid domain name
  • 2319 = the command can only be used for a secondary domain
  • 3222 = the domain could not be loaded
  • 3223 = the domain belongs to another customer account
  • 3305 = the domain is locked
  • 3306 = the domain is deleted

Response data

  • next_run = time of the scheduled transfer

Templates

JSON request:

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-domain-axfr-run",
    "clTRID": "your request id",
    "data": {
      "name": "domain.tld"
    }
  }
}

JSON response (OK):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-domain-axfr-run",
    "data": {
      "next_run": "YYYY-MM-DD HH:MM:SS"
    }
  }
}

dns-domain-axfr-tsig

Use dns-domain-axfr-tsig to create, cancel or show the TSIG key for outgoing AXFR transfers, i.e. for transferring the zone from WEDOS DNS to your secondary DNS server.

TSIG (Transaction Signature) verifies the identity of the servers during a zone transfer. Once the key is created, WEDOS DNS requires it for all outgoing AXFR transfers, so you must configure the same key on your secondary server. If your secondary server does not use TSIG, do not create a key; otherwise the zone transfer fails.

Parameters

  • name = domain name, or several names separated by commas (required)
  • axfr_tsig_action = action (required):
    • create = create a new key (replaces the existing key)
    • cancel = cancel the key
    • info = show the existing key

Return codes

  • 1000 = OK
  • 2101 = invalid axfr_tsig_action value
  • 2201 = unsupported TLD
  • 2202 = invalid domain name
  • 2334 = the domain has no TSIG key for AXFR (info action)
  • 2335 = the TSIG key could not be created
  • 2336 = the TSIG key could not be cancelled
  • 2338 = you are not authorized to edit the domain
  • 2340 = maximum number of domains in one request exceeded
  • 3222 = the domain could not be loaded
  • 3223 = the domain belongs to another customer account
  • 3305 = the domain is locked
  • 3306 = the domain is deleted

Response data

  • name = domain name
  • axfr_tsig_action = action performed
  • axfr_tsig_name = TSIG key name (on success only)
  • axfr_tsig_alg = TSIG key algorithm (on success only)
  • axfr_tsig_key = TSIG key value (on success only)

For several domains, each item also contains code and result. In test mode, the key details are not returned.

Templates

JSON request:

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-domain-axfr-tsig",
    "clTRID": "your request id",
    "data": {
      "name": "domain.tld",
      "axfr_tsig_action": "create"
    }
  }
}

JSON response (OK, single domain):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-domain-axfr-tsig",
    "data": {
      "name": "domain.tld",
      "axfr_tsig_action": "create",
      "axfr_tsig_name": "key name",
      "axfr_tsig_alg": "hmac-sha256",
      "axfr_tsig_key": "Base64 key value"
    }
  }
}

JSON response (several domains):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-domain-axfr-tsig",
    "data": [
      {
        "name": "domain1.tld",
        "code": 1000,
        "result": "OK",
        "axfr_tsig_action": "create",
        "axfr_tsig_name": "key name",
        "axfr_tsig_alg": "hmac-sha256",
        "axfr_tsig_key": "Base64 key value"
      },
      {
        "name": "domain2.tld",
        "code": 3222,
        "result": "Domain open failed",
        "axfr_tsig_action": "create"
      }
    ]
  }
}

dns-domain-copy

Use dns-domain-copy to add a new domain to DNS with the same settings and records as another of your domains.

Parameters

  • name = name of the existing domain to copy from (required)
  • name_new = name of the new domain (required)

Return codes

  • 1000 = OK
  • 2201 = unsupported TLD of the existing domain
  • 2202 = invalid name of the existing domain
  • 2320 = invalid name of the new domain
  • 2321 = unsupported TLD of the new domain
  • 2322 = the account’s DNS domain limit has been reached
  • 3222 = the domain could not be loaded
  • 3223 = the domain belongs to another customer account
  • 3305 = the domain is locked
  • 3306 = the domain is deleted
  • 3311 = copying failed
  • 3312 = the new domain already exists in DNS

Response data

The command returns no data.

Templates

JSON request:

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-domain-copy",
    "clTRID": "your request id",
    "data": {
      "name": "domain.tld",
      "name_new": "new-domain.tld"
    }
  }
}

JSON response (OK):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-domain-copy"
  }
}

dns-domain-commit

Use dns-domain-commit to confirm changes to a domain or its records and send them to the DNS servers. If you do not send it, the system sends the changes automatically 5 minutes after the last change.

Parameters

  • name = domain name (required)

Return codes

  • 1000 = OK
  • 2201 = unsupported TLD
  • 2202 = invalid domain name
  • 3222 = the domain could not be loaded
  • 3223 = the domain belongs to another customer account
  • 3305 = the domain is locked
  • 3306 = the domain is deleted

Response data

The command returns no data.

Templates

JSON request:

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-domain-commit",
    "clTRID": "your request id",
    "data": {
      "name": "domain.tld"
    }
  }
}

JSON response (OK):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-domain-commit"
  }
}

dns-rows-list

Use dns-rows-list to get a list of the domain’s records. You can filter and page through the list. dns-row-detail returns the details of a single record.

Parameters

  • domain = domain name (required)
  • row_name = exact record name (optional); @ means the record on the domain itself
  • rdtype = record type, e.g. A, AAAA, MX, TXT (optional, case-insensitive)
  • search = text to search for in the record name or data, case-insensitive (optional)
  • page = page number (optional, default 1)
  • page_limit = records per page, at most 1000 (optional). If omitted or 0, all records are returned.

If you enter any of row_name, rdtype, search, page or page_limit, the response also contains total, page and page_limit. A page past the end of the list returns an empty row array, not an error.

Return codes

  • 1000 = OK
  • 2201 = unsupported TLD
  • 2202 = invalid domain name
  • 2318 = the command cannot be used for a secondary domain
  • 3222 = the domain could not be loaded
  • 3223 = the domain belongs to another customer account
  • 3305 = the domain is locked
  • 3306 = the domain is deleted

Response data

  • row = list of records:
    • ID = record ID
    • name = record name (empty for the record on the domain itself)
    • ttl = TTL
    • rdtype = record type
    • rdata = record data
    • changed_date = time of the last change
    • author_comment = comment
  • total = number of records after filtering (only when filtering or paging)
  • page = number of the returned page (only when filtering or paging)
  • page_limit = records per page used, 0 = all (only when filtering or paging)

Templates

JSON request (all records):

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-rows-list",
    "clTRID": "your request id",
    "data": {
      "domain": "domain.tld"
    }
  }
}

JSON response (OK, without filters):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-rows-list",
    "data": {
      "row": [
        {
          "ID": "record ID",
          "name": "www",
          "ttl": "300",
          "rdtype": "A",
          "rdata": "203.0.113.10",
          "changed_date": "YYYY-MM-DD HH:MM:SS",
          "author_comment": "comment"
        }
      ]
    }
  }
}

JSON request (A records, first page of 50 records):

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-rows-list",
    "clTRID": "your request id",
    "data": {
      "domain": "domain.tld",
      "rdtype": "A",
      "page": 1,
      "page_limit": 50
    }
  }
}

JSON response (OK, with filter and paging):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-rows-list",
    "data": {
      "row": [
        {
          "ID": "record ID",
          "name": "www",
          "ttl": "300",
          "rdtype": "A",
          "rdata": "203.0.113.10",
          "changed_date": "YYYY-MM-DD HH:MM:SS",
          "author_comment": ""
        }
      ],
      "total": 1,
      "page": 1,
      "page_limit": 50
    }
  }
}

dns-row-detail

Use dns-row-detail to get the details of a single domain record. You can find the record ID with dns-rows-list.

Parameters

  • domain = domain name (required)
  • row_id = record ID (required)

Return codes

  • 1000 = OK
  • 2201 = unsupported TLD
  • 2202 = invalid domain name
  • 2318 = the command cannot be used for a secondary domain
  • 3222 = the domain could not be loaded
  • 3223 = the domain belongs to another customer account
  • 3305 = the domain is locked
  • 3306 = the domain is deleted
  • 3309 = no record with this ID exists

Response data

  • row = the record, with the same items as in dns-rows-list (ID, name, ttl, rdtype, rdata, changed_date, author_comment)

Templates

JSON request:

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-row-detail",
    "clTRID": "your request id",
    "data": {
      "domain": "domain.tld",
      "row_id": "record ID"
    }
  }
}

JSON response (OK):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-row-detail",
    "data": {
      "row": {
        "ID": "record ID",
        "name": "www",
        "ttl": "300",
        "rdtype": "A",
        "rdata": "203.0.113.10",
        "changed_date": "YYYY-MM-DD HH:MM:SS",
        "author_comment": "comment"
      }
    }
  }
}

dns-row-add

Use dns-row-add to add a new record to a domain.

By default, a domain can have up to 50 records. If you need more, contact support with the domain name, the number of records you need and the reason.

Parameters

  • domain = domain name (required)
  • name = record name (required; an empty string for the record on the domain itself)
  • ttl = TTL in seconds (required)
  • type = record type, e.g. A, AAAA, CNAME, MX, TXT (required)
  • rdata = record data (required)
  • author_comment = comment (optional). Allowed are letters without diacritics, digits, space and the characters . , ( ) - _ @ +.

Return codes

  • 1000 = OK
  • 2201 = unsupported TLD
  • 2202 = invalid domain name
  • 2298 = author_comment contains characters that are not allowed
  • 2309 = unsupported record type
  • 2310 = the domain has the maximum number of records
  • 2311 = invalid record name
  • 2312 = this record type cannot be used for this name (e.g. on the domain itself)
  • 2313 = a CNAME record exists for the name, or the CNAME conflicts with another record
  • 2314 = invalid record data
  • 2315 = the TTL differs from other records with the same name and type
  • 2316 = the same record already exists
  • 2317 = TTL out of the allowed range
  • 2318 = the command cannot be used for a secondary domain
  • 2329 = invalid combination of an ALIAS record with A/AAAA records
  • 3222 = the domain could not be loaded
  • 3223 = the domain belongs to another customer account
  • 3305 = the domain is locked
  • 3306 = the domain is deleted
  • 3307 = the record could not be added

Response data

  • domain = domain name
  • row_id = ID of the new record (null on error and in test mode)

Templates

JSON request:

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-row-add",
    "clTRID": "your request id",
    "data": {
      "domain": "domain.tld",
      "name": "www",
      "ttl": 300,
      "type": "A",
      "rdata": "203.0.113.10",
      "author_comment": "web server"
    }
  }
}

JSON response (OK):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-row-add",
    "data": {
      "domain": "domain.tld",
      "row_id": "record ID"
    }
  }
}

dns-row-update

Use dns-row-update to change a record’s TTL, data or comment. The record name and type cannot be changed; in that case, delete the record and create a new one.

Parameters

  • domain = domain name (required)
  • row_id = record ID (required)
  • ttl = TTL in seconds (required)
  • rdata = record data (required)
  • author_comment = comment (optional). If omitted, the comment does not change. An empty string deletes it.

Return codes

  • 1000 = OK
  • 2201 = unsupported TLD
  • 2202 = invalid domain name
  • 2298 = author_comment contains characters that are not allowed
  • 2311 = invalid record name
  • 2312 = this record type cannot be used for this name
  • 2313 = a CNAME record exists for the name, or the CNAME conflicts with another record
  • 2314 = invalid record data
  • 2315 = the TTL differs from other records with the same name and type
  • 2316 = the same record already exists
  • 2317 = TTL out of the allowed range
  • 2318 = the command cannot be used for a secondary domain
  • 2329 = invalid combination of an ALIAS record with A/AAAA records
  • 3222 = the domain could not be loaded
  • 3223 = the domain belongs to another customer account
  • 3305 = the domain is locked
  • 3306 = the domain is deleted
  • 3309 = no record with this ID exists
  • 3310 = the record update failed

Response data

The command returns no data.

Templates

JSON request:

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-row-update",
    "clTRID": "your request id",
    "data": {
      "domain": "domain.tld",
      "row_id": "record ID",
      "ttl": 3600,
      "rdata": "203.0.113.20"
    }
  }
}

JSON response (OK):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-row-update"
  }
}

dns-row-delete

Use dns-row-delete to delete a domain record.

Parameters

  • domain = domain name (required)
  • row_id = record ID (required)

Return codes

  • 1000 = OK
  • 2201 = unsupported TLD
  • 2202 = invalid domain name
  • 2318 = the command cannot be used for a secondary domain
  • 3222 = the domain could not be loaded
  • 3223 = the domain belongs to another customer account
  • 3305 = the domain is locked
  • 3306 = the domain is deleted
  • 3308 = the record could not be deleted
  • 3309 = no record with this ID exists

Response data

The command returns no data.

Templates

JSON request:

{
  "request": {
    "user": "your@login.tld",
    "auth": "generated auth string",
    "command": "dns-row-delete",
    "clTRID": "your request id",
    "data": {
      "domain": "domain.tld",
      "row_id": "record ID"
    }
  }
}

JSON response (OK):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UNIX time",
    "clTRID": "your request id",
    "svTRID": "server request id",
    "command": "dns-row-delete"
  }
}

Was this article helpful?

Your feedback helps us improve our articles.

Your message goes to the documentation team, who do not reply to it. If you need help, contact us using the contact form. Do not include passwords or personal data.

Didn’t find what you were looking for?

Send us your question using the contact form.