Get DNS

1. API Description

This API is used to get DNS.

Request mode: POST [ip]/api/network/get-dns

Administrator Rights Logged-in
Yes Yes

2. Input Parameters

None

3. Output Parameters

Name Type Description
status Int Status code
code String Status description
is-manual Boolean Whether the DNS is set manually
true: Yes; false: No
dns1 String Primary DNS. Empty characters mean not set.
dns2 String Secondary DNS. Empty characters mean not set.

4. Example

Getting DNS.

Input Example
None
Output Example
{
  "is-manual": false,
  "dns1": "10.0.1.3",
  "dns2": "",
  "status": 0
}

5. Error Code

No error code related to the API business logic. For other error codes, see Common Error Codes.

results matching ""

    No results matching ""