WAPI – WEDOS DNS

Ezen az oldalondns-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 deals with WAPI commands specifically for the WEDOS DNS service. For information on how to set up WAPI and troubleshoot common issues, see the article WAPI – Manual.

This article provides information on the following requests:


dns-domains-list

Use the dns-domains-list request to list the user’s DNS domains.

Parameters

  • search – string to search for among domain names – optional
  • status – filter by status (active, disabled) – optional
  • type – filter by domain type (primary, secondary) – optional
  • page – page number (default: 1) – optional
  • page_limit – number of entries per page (default: 50) – optional
  • orderby – order entries by created_date or domain, followed by asc/desc – optional, see template

Return Values

  • 1000 – OK

Response Data

The request returns a list of domains using this template:

  • domain
    • name – domain name
    • status – domain status in the system
    • type – type (primary/secondary)

Templates

JSON request:

{
"request": {
"user": "your@login.tld",
"auth": "authentication string",
"command": "dns-domains-list",
"clTRID": "your ID",
"data": {
"search": "search term in domain name",
"status": "active|disabled",
"type": "primary|secondary",
"page": "page number",
"page_limit": "number of entries per page",
"orderby":"domain|created_date asc|desc"
}
}
}

JSON response (OK):

{
"response": {
"code": 1000,
"result": "OK",
"timestamp": "UTF timestamp",
"clTRID": "your ID",
"svTRID": "server ID",
"command": "dns-domains-list",
"data": {
"domain": [
{
"name": "domain1 name in DNS",
"type": "type (primary|secondary)",
"status": "active|disabled"
}
],
"total": "počet položek celkem",
"page": "číslo stránky",
"page_limit": "počet položek na stránku"
}
}
}

dns-domain-info

Use the dns-domain-info request to find basic information about one or more domains in the WEDOS DNS system (WDNS).

Parameters

  • name – domain name, for multiple domains use a comma-separated string (see template) – required

Return Values

  • 1000= OK
  • 2201= nem támogatott TLD
  • 2202= érvénytelen domainnév
  • 3222= a domain megnyitása sikertelen
  • 3223= jogosultsági hiba
  • 3305= a domain szerkesztésre zárolva van
  • 3306= a domain törölve van

The return value for multiple domains is always 1000. Any error values are displayed in the domain data, as shown in the template.

Return Data

If successful, the request returns the domain detail in WDNS in the data/domain node.

Templates

JSON request with 2 domains:

{
"request": {
"user": "your@login.tld",
"auth": "authentication string",
"command": "dns-domain-info",
"clTRID": "your ID",
"data": {
"name": "domain.name1, domain.name2"
}
}
}

JSON response (domain.name1 OK, domain.name2 error):

{
"response": {
"code": 1000,
"result": "OK",
"timestamp": "UTF timestamp",
"clTRID": "your ID",
"svTRID": "server ID",
"command": "dns-domain-info",
"data": {
"domain": [{
"name": "domain.name1",
"status": "",
"type": "",
"tlock": "",
"autocommit": "",
"axfr_enabled": "outgoing axfr enabled? (0/1)",
"axfr_ips": "allowed axfr IPs list",
"changed": "",
"changed_date": "",
"commit_date": "",
"reload_pending": "",
"reload_pending_date": "",
"reload_date": "",
"disabled_date": "",
"enabled_date": "",
"add_date": "",
"rname": "",
"serial": "",
"refresh": "",
"retry": "",
"expire": "",
"minimum": "",
"rr_cnt6": "",
"ns_out": "",
"ns1": ""
},
{
"name": "domain.name2",
"code": 3222,
"result": "Domain open failed"
}]
}
}
}

dns-domain-add

Use the dns-domain-add request to add a new domain to DNS.

Parameters

  • name – domain name, or multiple comma-separated names (required)
  • type – domain record type (primary/secondary) – optional (default: primary)
  • axfr_enabled – is outgoing axfr enabled? (0/1) – primary domains only, optional (default: 0)
  • axfr_ips – list of enabled ip addresses for axfr (only for primary entry, enter multiple addresses as a space-separated list; required if axfr_enabled=1)
  • primary_ip – ip addresses of the primary dns server (required if type=secondary)
  • primary_tsig_enabled – is TSIG enabled? (0/1) – secondary domains only, optional
  • primary_tsig_name – TSIG idetifier – secondary domains only, required if TSIG enabled
  • primary_tsig_alg – TSIG algorithm – secondary domains only, required if TSIG enabled
  • primary_tsig_key – TSIG key – secondary domains only, required if TSIG enabled
  • template_id – ID of a template-type domain – primary domain only, optional

Return Values

  • 1000 = ok
  • 2007 = a kérés maximális mérete túllépve
  • 2100 = hiányzó kötelező paraméter
  • 2101= érvénytelen bemeneti paraméterek
  • 2201 = nem támogatott TLD
  • 2202 = érvénytelen domainnév
  • 2301 = a típus formátuma hibás
  • 2302 = hiányzik a primary_ip paraméter
  • 2303 = a primary_ip formátuma hibás
  • 2304 = az axfr_enabled formátuma érvénytelen
  • 2305 = hiányzik a kötelező axfr_ips paraméter
  • 2306 = az axfr_ips formátuma érvénytelen
  • 2308 = az ns formátuma érvénytelen
  • 2322 = a felhasználónként a DNS-ben engedélyezett domainek korlátja elérve
  • 2323 = a sablon nem található
  • 2324 = a primary domain létrehozása sablonnal nem lehetséges
  • 2325 = meghatározatlan sablon
  • 2330 = Érvénytelen kérés – WDNS domain – primary TSIG – érvénytelen konfiguráció
  • 2331 = Érvénytelen kérés – WDNS domain – primary TSIG – érvénytelen névformátum
  • 2332 = Érvénytelen kérés – WDNS domain – primary TSIG – érvénytelen algoritmusformátum
  • 2333 = Érvénytelen kérés – WDNS domain – primary TSIG – érvénytelen kulcsformátum
  • 2340 = egy műveletben érintett domainek maximális száma túllépve
  • 3302 = a domain hozzáadása a DNS-hez sikertelen
  • 3303 = a domain már létezik a DNS-ben

Return Data

The request returns no data.

Templates

JSON request – primary domain:

{
"request": {
"user": "your@login.tld",
"auth": "authentication string",
"command": "dns-domain-add",
"clTRID": "your ID",
"data": {
"name": "domain1.tld, domain2.tld",
"axfr_enabled": "0 or 1",
"axfr_ips": "allowed AXFR address(es)",
"template_id": "ID of domain records template"
}
}
}

JSON request – secondary domain:

{
"request": {
"user": "your@login.tld",
"auth": "authentication string",
"command": "dns-domain-add",
"clTRID": "your ID",
"data": {
"name": "domain1.tld, domain2.tld",
"type": "secondary",
"primary_ip": "primary IP address",
"primary_tsig_enabled": "0 or 1",
"primary_tsig_name": "tsig_identifier",
"primary_tsig_alg": "hmac-sha1, hmac-sha224, hmac-sha256, hmac-sha384, hmac-sha512 or hmac-md5",
"primary_tsig_key": "TSIG_key_value"
}
}
}

JSON response (OK):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UTF timestamp",
    "clTRID": "your ID",
    "svTRID": "server ID",
    "command": "dns-domain-add"
  }
}

JSON response for multiple domains:

{
"response":{
"code":1000,
"result":"OK",
"timestamp": "UTF timestamp",
"clTRID": "your ID",
"svTRID": "server ID",
"command":"dns-domain-add",
"data": [
{
"code":1000,
"result":"OK",
"name":"domain1.tld",
"domain_id":"service ID"
},
{
"code":1000,
"result":"OK",
"name":"domain2.tld",
"domain_id":"service ID"
}
]
}
}

dns-domain-update

Use the dns-domain-update request to edit the domain in DNS.

Parameters

  • name – domain name, or multiple comma-separated names (required)
  • axfr_enabled – is outgoing axfr enabled? (0/1) – primary domains only, optional (default: 0)
  • axfr_ips – list of enabled ip addresses for axfr (only for primary entry, required if axfr_enabled=1)
  • ip – ip address for outgoing axfr
  • primary_ip – ip addresses of the primary dns server (required if type=secondary)
  • primary_tsig_enabled – is TSIG enabled? (0/1) – secondary domains only, optional
  • primary_tsig_name – TSIG idetifier – secondary domains only, required if TSIG enabled
  • primary_tsig_alg – TSIG algorithm – secondary domains only, required if TSIG enabled
  • primary_tsig_key – TSIG key – secondary domains only, required if TSIG enabled

Return Values

  • 1000 = ok
  • 2007= a kérés maximális mérete túllépve
  • 2100 = hiányzó kötelező paraméter
  • 2101= érvénytelen bemeneti paraméterek
  • 2201 = nem támogatott TLD
  • 2202 = érvénytelen domainnév
  • 2302 = hiányzik a primary_ip paraméter
  • 2303 = a primary_ip formátuma hibás
  • 2304 = az axfr_enabled formátuma érvénytelen
  • 2305 = hiányzik a kötelező axfr_ips paraméter
  • 2306 = az axfr_ips formátuma érvénytelen
  • 2308 = az ns formátuma érvénytelen
  • 2322 = a felhasználónként a DNS-ben engedélyezett domainek korlátja elérve
  • 2330 = Érvénytelen kérés – WDNS domain – primary TSIG – érvénytelen konfiguráció
  • 2331 = Érvénytelen kérés – WDNS domain – primary TSIG – érvénytelen névformátum
  • 2332 = Érvénytelen kérés – WDNS domain – primary TSIG – érvénytelen algoritmusformátum
  • 2333 = Érvénytelen kérés – WDNS domain – primary TSIG – érvénytelen kulcsformátum
  • 2340= egy műveletben érintett domainek maximális száma túllépve
  • 3302 = a domain hozzáadása a DNS-hez sikertelen
  • 3303 = a domain már létezik a DNS-ben

Return Data

The request returns no data.

Templates

JSON request:

{
"request": {
"user": "your@login.tld",
"auth": "authentication string",
"command": "dns-domain-update",
"clTRID": "your ID",
"data": {
"name": "domain1.tld, domain2.tld",
"axfr_enabled": "0 or 1",
"axfr_ips": "allowed AXFR IP address(es)",
"primary_ip": "primary IP adderess",
"primary_tsig_enabled": "0 or 1",
"primary_tsig_name": "tsig_identifier",
"primary_tsig_alg": "hmac-sha1, hmac-sha224, hmac-sha256, hmac-sha384, hmac-sha512 or hmac-md5",
"primary_tsig_key": "TSIG_key_value"
}
}
}

JSON response (OK):

{
"response": {
"code": 1000,
"result": "OK",
"timestamp": "UTF timestamp",
"clTRID": "your ID",
"svTRID": "server ID",
"command": "dns-domain-update"
}
}

JSON response for multiple domains (OK):

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

dns-domain-delete

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

Parameters

  • name – domain name, or multiple comma-separated names (required)

Return Values

  • 1000 = ok
  • 2007= a kérés maximális mérete túllépve
  • 2340= egy műveletben érintett domainek maximális száma túllépve
  • 3222= a domain megnyitása sikertelen
  • 3223= hozzáférés megtagadva
  • 3301= a rekord nem távolítható el
  • 3305= a domain szerkesztésre zárolva van
  • 3306= a domain törölve van

Return Data

The request returns no data.

Templates

JSON request:

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

JSON response (OK):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UTF timestamp",
    "clTRID": "your ID",
    "svTRID": "server ID",,
    "command": "dns-domain-delete"
  }
}

JSON response for multiple domains (OK):

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

dns-domain-axfr-run

The dns-domain-axfr-run request updates DNS records from the primary authoritative server via AXFR as soon as possible (within a few minutes). It is used for secondary domains, where we download the content of the zone to our system from another server.

Without this request, AXFR uses the REFRESH and RETRY data in the SOA record.

Parameters

  • name – domain name – required

Return Values

  • 1000 = ok
  • 2201= nem támogatott TLD
  • 2202= érvénytelen vagy nem támogatott domainnév
  • 2319= csak secondary domaintípusnál hajtható végre
  • 3222= a domain megnyitása sikertelen
  • 3223= hozzáférés megtagadva
  • 3305= a domain szerkesztésre zárolva van
  • 3306= a domain törölve van

Return Data

  • next_run – time for the next update to take place

Templates

JSON request:

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

JSON response (OK):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UTF timestamp",
    "clTRID": "your ID",
    "svTRID": "server ID",
    "command": "dns-domain-axfr-run",
    "data": {
      "next_run": "date and time of next update"
    }
  }
}

dns-domain-axfr-tsig

The dns-domain-axfr-tsig request is used to create/update, delete or display AXFR TSIG key information for one or more domains.

TSIG (Transaction Signature) is an authentication mechanism for DNS transfers (AXFR/IXFR) that provides identity verification between the primary and secondary servers. This verification will be required for all transfers to secondary DNS servers and must exactly match its configuration.

If the primary server doesn’t use TSIG, do not enable this option, the AXFR transfer will fail.

Parameters

  • name – domain name, or multiple comma-separated names (required)
  • axfr_tsig_action – AFXR TSIG action – required
    • create – enable or update AXFR TSIG
    • cancel – disable AXFR TSIG
    • info – display AXFR TSIG info

Return Values

  • 1000 = ok
  • 2201= nem támogatott TLD
  • 2202= érvénytelen vagy nem támogatott domainnév
  • 2319= csak secondary domaintípusnál hajtható végre
  • 2334 = az AXFR TSIG nincs beállítva
  • 2335 = az AXFR TSIG nem jött létre
  • 2336 = az AXFR TSIG nem lett kikapcsolva
  • 2337 = érvénytelen AXFR TSIG parancs
  • 2340 = egy műveletben érintett domainek maximális száma túllépve
  • 3222= a domain megnyitása sikertelen
  • 3223= hozzáférés megtagadva
  • 3305= a domain szerkesztésre zárolva van
  • 3306= a domain törölve van

Return Data

  • name = domainnév
  • axfr_tsig_action – AFXR TSIG action name
  • axfr_tsig_name – AXFR TSIG key name
  • axfr_tsig_alg – AXFR TSIG key algorithm
  • axfr_tsig_key – AXFR TSIG key value

Templates

JSON request:

{
"request":{
"user": "your@login.tld",
"auth": "authentication string",
"command":"dns-domain-axfr-tsig",
"clTRID": "your ID",
"data":{
"name":"domain1.tld, domain2.tld",
"axfr_tsig_action":"create, cancel, or info"
}
}
}

JSON response for create command (multiple domain states):

{
"response":{
"code": 1000,
"result": "OK",
"timestamp": "UTF timestamp",
"clTRID": "your ID",
"svTRID": "server ID",
"command":"dns-domain-axfr-tsig",
"data": [
{
"name":"domain1.tld",
"code":1000,
"result":"OK",
"axfr_tsig_action":"create",
"axfr_tsig_name":"keyname",
"axfr_tsig_alg":"hmac-sha256",
"axfr_tsig_key":"lbOYAMGHc6eSo3R2h6rWrHcsp3iSBp/0D0S7kjRqxLI="
},
{
"name":"domain-swapi-00003y.cz",
"code":3222,
"result":"Domain open failed",
"axfr_tsig_action":"create"
}
]
}
}

dns-domain-copy

Use the dns-domain-copy command to add a domain to DNS by copying the settings and records from another existing one.

Parameters

  • name – name of the original domain (the one you want to copy) – required
  • name_new – name of the newly created domain – required

Return Values

  • 1000 = ok
  • 2201= nem támogatott TLD
  • 2202= a meglévő domain neve érvénytelen vagy nem támogatott
  • 2320= az új domain neve érvénytelen vagy nem támogatott
  • 2321= az új domainnév TLD-je nem támogatott
  • 2322= a felhasználónként a DNS-ben engedélyezett domainek számának korlátja elérve
  • 3222= a domain megnyitása sikertelen
  • 3223= hozzáférés megtagadva
  • 3305= a domain szerkesztésre zárolva van
  • 3306= a domain törölve van
  • 3311= a másolás sikertelen
  • 3312= az új domain már létezik a DNS-ben

Return Data

The request returns no data.

Templates

JSON request:

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

JSON response (OK):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UTF timestamp",
    "clTRID": "your ID",
    "svTRID": "server ID",
    "command": "dns-domain-copy"
  }
}

dns-domain-commit

Use the dns-domain-commit request after making any changes to the domain or its DNS records. You confirm the changes and request their distribution to DNS servers.

If you don’t execute the dns-domain-commit command, the system will perform it automatically 5 minutes after the last change.

Parameters

  • name – domain name – required

Return Values

  • 1000 = ok
  • 2201= nem támogatott TLD
  • 2202= érvénytelen vagy nem támogatott domainnév
  • 3222= a domain megnyitása sikertelen
  • 3223= hozzáférés megtagadva
  • 3305= a domain szerkesztésre zárolva van
  • 3306= a domain törölve van

Return Data

The request returns no data.

Templates

JSON request:

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

JSON response (OK):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UTF timestamp",
    "clTRID": "your ID",
    "svTRID": "server ID",
    "command": "dns-domain-commit"
  }
}

dns-rows-list

Use the dns-rows-list request to get a list of domain records in DNS along with basic information.

To get more detailed information about a particular record, use the dns-row-detail request.

Parameters

  • domain – domain name – required

Return Values

  • 1000 = ok
  • 2201= nem támogatott TLD
  • 2202= érvénytelen vagy nem támogatott domainnév
  • 2318= secondary domaintípusnál nem hajtható végre
  • 3222= a domain megnyitása sikertelen
  • 3223= hozzáférés megtagadva
  • 3305= a domain szerkesztésre zárolva van
  • 3306= a domain törölve van

Response Data

  • row – record
    • ID – record ID
    • name – record name
    • ttl – record TTL
    • rdtype – record type
    • rdata – record data
    • changed_date – date of change
    • author_comment – comment

Templates

JSON request:

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

JSON response (OK):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UTF timestamp",
    "clTRID": "your ID",
    "svTRID": "server ID",
    "command": "dns-rows-list",
    "data": {
      "row1": {
        "ID": "record ID",
        "name": "record name (may be empty)",
        "ttl": "TTL",
        "rdtype": "record type",
        "rdata": "record data",
        "changed_date": "date and time of last update",
        "author_comment": "comment"
      }
    }
  }
}

dns-row-detail

The dns-row-detail request returns detailed information about a specific domain DNS record.

To get a complete list of a domain’s records, use the dns-rows-list request.

Parameters

  • name – domain name – required
  • row_id – record ID – required, gained from dns-rows-list

Return Values

  • 1000 = ok
  • 2201= nem támogatott TLD
  • 2202= érvénytelen vagy nem támogatott domainnév
  • 2318= Ez a művelet secondary domaintípuson nem hajtható végre
  • 3222= a domain megnyitása sikertelen
  • 3223= hozzáférés megtagadva
  • 3305= a domain szerkesztésre zárolva van
  • 3306= a domain törölve van
  • 3309= a domainhez szükséges DNS-rekord nem létezik

Return Data

  • row – record
    • ID – record ID
    • name – record name
    • ttl – record TTL
    • rdtype – record type
    • rdata – record data
    • changed_date – date of change
    • author_comment – comment

Templates

JSON request:

{
  "request": {
    "user": "your@login.tld",
    "auth": "authentication string",
    "command": "dns-row-detail",
    "clTRID": "your ID",
    "data": {
      "name": "název domény",
      "row_id": "ID záznamu"
    }
  }
}

JSON response (OK):

{
"response": {
"code": 1000,
"result": "OK",
"timestamp": "UTF timestamp",
"clTRID": "your ID",
"svTRID": "server ID",
"command": "dns-row-detail",
"data": {
"row1": {
"ID": "record ID",
"name": "record name (may be empty)",
"ttl": "TTL",
"rdtype": "record type",
"rdata": "record data",
"changed_date": "date and time of last update",
"author_comment": "comment"
}
}
}
}

dns-row-add

The dns-row-add request adds a new DNS record to the domain.

By default, a domain can have up to 50 DNS records. If you need more, contact support ⧉. Include the domain name, desired number of records and detailed reasoning in your request.

Parameters

  • domain – domain name – required
  • name – record name – required, but can be empty
  • ttl – TTL value – required
  • type – record type – required
  • rdata – record data – required
  • author_comment – author comment – optional. Sending an empty string clears the previous comment.

Return Values

  • 1000 = ok
  • 2100 = hiányzik egy kötelező paraméter
  • 2201= nem támogatott TLD
  • 2202= érvénytelen vagy nem támogatott domainnév
  • 2309= érvénytelen rekordtípus
  • 2310= nem adható több rekord a domainhez
  • 2311= érvénytelen név
  • 2312= érvénytelen név ennél a rekordtípusnál
  • 2313= érvénytelen CNAME ehhez a névhez
  • 2314= a rekord adatai érvénytelenek
  • 2315= érvénytelen TLD
  • 2316= ez a rekord már létezik
  • 2317= érvénytelen TTL
  • 2318= a művelet secondary domaintípuson nem hajtható végre
  • 3222= a domain megnyitása sikertelen
  • 3223= hozzáférés megtagadva
  • 3305= a domain szerkesztésre zárolva van
  • 3306= a domain törölve van
  • 3307 = a domainrekord hozzáadása sikertelen
  • 5001 = belső hitelesítési hiba

Return Data

The request returns no data.

Templates

JSON request:

{
"request": {
"user": "your@login.tld",
"auth": "authentication string",
"command": "dns-row-add",
"clTRID": "your ID",
"data": {
"domain": "domain name",
"name": "record name (may be empty)",
"ttl": "TTL",
"type": "record type",
"rdata": "record data"
}
}
}

JSON request (OK):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UTF timestamp",
    "clTRID": "your ID",
    "svTRID": "server ID",
    "command": "dns-row-add",
  }
}

dns-row-update

Use the dns-row-update request to change a DNS record.

You cannot change the name and type of a record. In such a situation, delete the original record and then create a new one.

Parameters

  • domain – domain name – required
  • row_id – record ID – required, gained from dns-rows-list
  • ttl – TTL value – required
  • rdata – record data – required
  • author_comment – author comment – optional. Sending an empty string clears the previous comment.

Return Values

  • 1000 = ok
  • 2100 = hiányzik egy kötelező paraméter
  • 2201= nem támogatott TLD
  • 2202= érvénytelen vagy nem támogatott domainnév
  • 2309= érvénytelen rekordtípus
  • 2310= nem adható több rekord a domainhez
  • 2311= érvénytelen név
  • 2312= érvénytelen név ennél a rekordtípusnál
  • 2313= érvénytelen CNAME ehhez a névhez
  • 2314= a rekord adatai érvénytelenek
  • 2315= érvénytelen TLD
  • 2316= ez a rekord már létezik
  • 2317= érvénytelen TTL
  • 2318= a művelet secondary domaintípuson nem hajtható végre
  • 3222= a domain megnyitása sikertelen
  • 3223= hozzáférés megtagadva
  • 3305= a domain szerkesztésre zárolva van
  • 3306= a domain törölve van
  • 3310 = a domainrekord módosítása sikertelen
  • 5001 = belső hitelesítési hiba

Return Data

The request returns no data.

Templates

JSON příkaz:

{
"request": {
"user": "your@login.tld",
"auth": "authentication string",
"command": "dns-row-update",
"clTRID": "your ID",
"data": {
"domain": "domain name",
"row_id": "row ID",
"ttl": "TTL",
"rdata": "record data"
}
}
}

JSON response (OK):

{
  "response": {
    "code": 1000,
    "result": "OK",
    "timestamp": "UTF timestamp",
    "clTRID": "your ID",
    "svTRID": "server ID",
    "command": "dns-row-update"
  }
}

dns-row-delete

Use the dns-row-delete request to delete a DNS record for a domain.

Parameters

  • domain – domain name – required
  • row_id – record ID – required, gained from dns-rows-list

Return Values

  • 1000 = ok
  • 2201= nem támogatott TLD
  • 2202= érvénytelen vagy nem támogatott domainnév
  • 2318= érvénytelen művelet secondary domain típushoz
  • 3222= a domain megnyitása sikertelen
  • 3223= hozzáférés megtagadva
  • 3305= a domain szerkesztésre zárolva van
  • 3306= a domain törölve van
  • 3308= a rekord törlése sikertelen
  • 3309= ilyen azonosítójú rekord nem létezik

Return Data

The request returns no data.

Templates

JSON request:

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

JSON request (OK):

{
"response": {
"code": 1000,
"result": "OK",
"timestamp": "UTF timestamp",
"clTRID": "your ID",
"svTRID": "server ID",
"command": "dns-row-delete",
}
}

Hasznosnak találta ezt a cikket?

Visszajelzése segít nekünk a cikkek fejlesztésében.

Üzenetét a dokumentációs csapat olvassa el, de nem válaszol rá. Ha segítségre van szüksége, forduljon hozzánk a kapcsolatfelvételi űrlapon keresztül. Ne írjon ide jelszavakat vagy személyes adatokat.

Didn’t find what you were looking for?

Send us your question using the contact form.