Show / Hide
Table of Contents
Last modified: 2023-06-14
setRecord
Sets record for the second-level domain or its subdomains. Both the owner and administrator can set record.
This requires the owner or the administrator's signature, if the domain is expired, it's not allowed to set record.
Parameters
Name | Type | Description | Required |
name | String | The second-level domain, e.g. "test.neo", or subdomains, "pay.test.neo" | Required |
type | Integer | Available types are: 1 - IPV4 address record 5 - Canonical name record 16 - Text record 28 - IPV6 address record | Required |
data | String | The corresponding data | Required |
Example
Example #1 Set IPV4 address record
The following ipv4 addresses will be rejected:
Request body #1
Response body #1
Example #2 Set CNAME record
The cname string must meet the following requirements:
-
The length is greater than 3, and smaller than 255
-
Its format is x.x.x
-
Characters are combinations of numbers and Alphabet characters.
Request body #2
Response body #2
Example #3 Set Text record
It is random text string with the length limited to 255. Normally you can set it as N3 address.
Request body #3
Response body #3
Example #5 Set IPV6 record
The compressed IPV6 address is supported, such as 2001:1db8:0:: The following IPV6 addresses will be rejected:
Request body #4
Response body #4
Example #5 Set record for expired domains
Request body #5
Response body #5