This article describes the WAPI commands for NSSET – a set of DNS servers used in the registry by CZ domains. WAPI setup, authentication and troubleshooting are covered in WAPI – Manual. DNS records are managed as described in WAPI – WEDOS DNS. The full list of codes is in WAPI – Return Codes.
The article covers these commands:
- nsset-check – check whether an NSSET name is available
- nsset-info – NSSET information
- nsset-create – create an NSSET
- nsset-update – update an NSSET
- nsset-transfer – transfer an NSSET from another registrar
- nsset-send-auth-info – send the NSSET’s AUTH-ID
General information
- Parameter and item names in JSON (
name,dns,tech_c…) must be used exactly as shown in this article. - Any command can return 2100 (required parameter missing) and 2101 (invalid parameter value). They are not repeated for each command.
- reg_key = registry identifier (optional). All commands in this article accept it. You usually do not need it; the registry is determined by the TLD.
- Test mode: a request with
"test": 1validates the input parameters and changes nothing. - DNS server list (
dns):- An NSSET must have at least 2 servers. The maximum depends on the registry; exceeding it returns 2211.
- Each server has the items
name(the server’s domain name),addr_ipv4andaddr_ipv6(IP addresses, optional). - In JSON, number the servers
server1,server2…, because keys with the same name would overwrite each other. - In XML, repeat the
<server>element.
nsset-check
Use nsset-check to verify that an NSSET name is free to register, or to find out its state.
Parameters
- tld = TLD, e.g.
cz(required) - name = NSSET name (required)
Return codes
- 1000 = the name is free to register
- 2201 = invalid TLD
- 2247 = invalid or unsupported NSSET name format
- 3242 = the TLD does not support NSSET
- 3245 = the NSSET is already registered
- 3246 = the NSSET is not available (unknown reason)
- 3247 = the NSSET is not available
- 3248 = the NSSET is not available – quarantine
- 3249 = the NSSET is not available – reserved
- 3250 = the NSSET is not available – blocked
- 3251 = the NSSET is already registered with WEDOS
- 4218 = the check failed – communication error, try again later
- 5001 = internal authentication error
Response data
The command returns no data.
Templates
JSON request:
{
"request": {
"user": "your@login.tld",
"auth": "generated auth string",
"command": "nsset-check",
"clTRID": "your request id",
"data": {
"tld": "cz",
"name": "NSS-MYDOMAIN"
}
}
}
JSON response (OK):
{
"response": {
"code": 1000,
"result": "OK",
"timestamp": "UNIX time",
"clTRID": "your request id",
"svTRID": "server request id",
"command": "nsset-check"
}
}
nsset-info
Use nsset-info to get the NSSET’s details.
Parameters
- tld = TLD (required)
- name = NSSET name (required)
Return codes
- 1000 = OK
- 2201 = invalid TLD
- 2209 = invalid NSSET format
- 2247 = invalid or unsupported NSSET name format
- 3214 = NSSET not found or not available
- 3242 = the TLD does not support NSSET
- 4204 = the NSSET is not available – connection error, try again later
Response data
- nsset = NSSET details:
- name = NSSET name
- status = status
- reg_owner = current registrar
- reg_creator = registrar that created the NSSET
- reg_update = registrar that made the last change
- created_date = creation date
- updated_date = date of the last change
- transfer_date = date of the last transfer
- tech_c = technical contact
- dns = DNS servers in the
serveritem (array). Each server has:- name = the server’s domain name
- addr_ipv4 = IPv4 addresses (array)
- addr_ipv6 = IPv6 addresses (array)
Templates
JSON request:
{
"request": {
"user": "your@login.tld",
"auth": "generated auth string",
"command": "nsset-info",
"clTRID": "your request id",
"data": {
"tld": "cz",
"name": "NSS-MYDOMAIN"
}
}
}
JSON response (OK):
{
"response": {
"code": 1000,
"result": "OK",
"timestamp": "UNIX time",
"clTRID": "your request id",
"svTRID": "server request id",
"command": "nsset-info",
"data": {
"nsset": {
"name": "NSS-MYDOMAIN",
"status": "NSSET status",
"reg_owner": "current registrar",
"reg_creator": "registrar that created the NSSET",
"reg_update": "registrar of the last change",
"created_date": "YYYY-MM-DD hh:mm:ss",
"updated_date": "YYYY-MM-DD hh:mm:ss",
"transfer_date": "YYYY-MM-DD hh:mm:ss",
"tech_c": "MY-TECH",
"dns": {
"server": [
{ "name": "ns1.domain.cz", "addr_ipv4": ["203.0.113.10"], "addr_ipv6": ["2001:db8::10"] },
{ "name": "ns2.domain.cz", "addr_ipv4": ["203.0.113.11"], "addr_ipv6": [] }
]
}
}
}
}
}
nsset-create
Use nsset-create to create a new NSSET with a list of DNS servers and a technical contact.
Parameters
- tld = TLD (required)
- name = NSSET name (optional). If omitted, the system generates one and returns it in the response.
- dns = list of DNS servers, see General information (required). An empty value means the default WEDOS DNS servers are used.
- tech_c = technical contact (required; without it the command returns 2268). Separate multiple contacts with commas.
Return codes
- 1000 = OK, NSSET created
- 2201 = invalid TLD
- 2210 = invalid DNS server list format (including fewer than 2 servers)
- 2211 = too many DNS servers
- 2216 = invalid technical contact format
- 2247 = invalid or unsupported NSSET name format
- 2268 = technical contact missing
- 3228 = the TLD does not support contacts
- 3229 = technical contact not found or not available
- 3242 = the TLD does not support NSSET
- 3244 = NSSET creation failed
- 3245 = the NSSET is already registered
- 3246 = the NSSET is not available (unknown reason)
- 3247 = the NSSET is not available
- 3248 = the NSSET is not available – quarantine
- 3249 = the NSSET is not available – reserved
- 3250 = the NSSET is not available – blocked
- 3251 = the NSSET is already registered with WEDOS
- 4212 = the technical contact is not available – connection error
- 4218 = the check failed – communication error
- 4219 = creation failed – communication error
- 5001 = internal authentication error
Response data
- nsset = name of the created NSSET
Templates
JSON request:
{
"request": {
"user": "your@login.tld",
"auth": "generated auth string",
"command": "nsset-create",
"clTRID": "your request id",
"data": {
"tld": "cz",
"name": "NSS-MYDOMAIN",
"dns": {
"server1": {
"name": "ns1.domain.cz",
"addr_ipv4": "203.0.113.10",
"addr_ipv6": "2001:db8::10"
},
"server2": {
"name": "ns2.domain.cz",
"addr_ipv4": "203.0.113.11"
}
},
"tech_c": "MY-TECH"
}
}
}
JSON response (OK):
{
"response": {
"code": 1000,
"result": "OK",
"timestamp": "UNIX time",
"clTRID": "your request id",
"svTRID": "server request id",
"command": "nsset-create",
"data": {
"nsset": "NSS-MYDOMAIN"
}
}
}
nsset-update
Use nsset-update to change an existing NSSET. The original data is completely overwritten, so always send the full list of DNS servers.
Parameters
- tld = TLD (required)
- name = NSSET name (required)
- auth_info = the NSSET’s AUTH-ID (required)
- dns = list of DNS servers, see General information (required, at least 2 servers)
- tech_c = technical contact (optional). Separate multiple contacts with commas. If omitted, the default WEDOS technical contact is set.
Return codes
- 1000 = OK, NSSET changed
- 2201 = invalid TLD
- 2209 = invalid NSSET format
- 2210 = invalid DNS server list format (including fewer than 2 servers)
- 2211 = too many DNS servers
- 2216 = invalid technical contact format
- 2247 = invalid or unsupported NSSET name format
- 3214 = NSSET not found or not available
- 3228 = the TLD does not support contacts
- 3229 = technical contact not found or not available
- 3242 = the TLD does not support NSSET
- 3252 = authorization error (invalid AUTH-ID)
- 3254 = NSSET update failed
- 4204 = the NSSET is not available – connection error
- 4212 = the technical contact is not available – connection error
- 4220 = update failed – connection error
- 5001 = internal authentication error
Response data
The command returns no data.
Templates
JSON request:
{
"request": {
"user": "your@login.tld",
"auth": "generated auth string",
"command": "nsset-update",
"clTRID": "your request id",
"data": {
"tld": "cz",
"name": "NSS-MYDOMAIN",
"auth_info": "NSSET AUTH-ID",
"dns": {
"server1": {
"name": "ns1.domain.cz"
},
"server2": {
"name": "ns2.domain.cz"
}
},
"tech_c": "MY-TECH"
}
}
}
JSON response (OK):
{
"response": {
"code": 1000,
"result": "OK",
"timestamp": "UNIX time",
"clTRID": "your request id",
"svTRID": "server request id",
"command": "nsset-update"
}
}
nsset-transfer
Use nsset-transfer to transfer an NSSET from another registrar to WEDOS.
Parameters
- tld = TLD (required)
- name = NSSET name (required)
- auth_info = the NSSET’s AUTH-ID (required)
Return codes
- 1000 = OK
- 2201 = unsupported TLD
- 2209 = invalid NSSET format
- 2215 = auth_info missing
- 2247 = invalid or unsupported NSSET name format
- 2249 = NSSET transfer is not allowed for this TLD
- 3214 = NSSET not found or not available
- 3242 = the TLD does not support NSSET
- 3251 = the NSSET is already registered with WEDOS
- 3255 = authorization error
- 3256 = NSSET transfer failed
- 4204 = the NSSET is not available – connection error
- 4221 = transfer failed – connection error
- 5001 = internal authentication error
Response data
The command returns no data.
Templates
JSON request:
{
"request": {
"user": "your@login.tld",
"auth": "generated auth string",
"command": "nsset-transfer",
"clTRID": "your request id",
"data": {
"tld": "cz",
"name": "NSS-MYDOMAIN",
"auth_info": "NSSET AUTH-ID"
}
}
}
JSON response (OK):
{
"response": {
"code": 1000,
"result": "OK",
"timestamp": "UNIX time",
"clTRID": "your request id",
"svTRID": "server request id",
"command": "nsset-transfer"
}
}
nsset-send-auth-info
Use nsset-send-auth-info to send the NSSET’s AUTH-ID to the email of the NSSET’s technical contact.
Parameters
- tld = TLD (required)
- name = NSSET name (required)
Return codes
- 1000 = OK, the AUTH-ID was sent to the technical contact’s email
- 2201 = unsupported TLD
- 2209 = invalid NSSET format
- 2216 = invalid contact format
- 2243 = sending the AUTH-ID is not allowed for this NSSET
- 2247 = invalid or unsupported NSSET name format
- 3214 = NSSET not found or not available
- 3217 = sending the AUTH-ID failed
- 3228 = the TLD does not support contacts
- 3229 = contact not found or not available
- 3242 = the TLD does not support NSSET
- 3257 = sending failed – the NSSET is not available
- 4204 = the NSSET is not available – connection error
- 4212 = the contact is not available – connection error
- 4222 = sending failed – connection error
- 5001 = internal authentication error
Response data
The command returns no data.
Templates
JSON request:
{
"request": {
"user": "your@login.tld",
"auth": "generated auth string",
"command": "nsset-send-auth-info",
"clTRID": "your request id",
"data": {
"tld": "cz",
"name": "NSS-MYDOMAIN"
}
}
}
JSON response (OK):
{
"response": {
"code": 1000,
"result": "OK",
"timestamp": "UNIX time",
"clTRID": "your request id",
"svTRID": "server request id",
"command": "nsset-send-auth-info"
}
}