/mgmt/config/default/DNSNameService GET
Use the HTTP GET method with the /mgmt/config/default/DNSNameService
resource to request a list of current DNS name service settings.
Resource URL
https://host:port/mgmt/config/default/DNSNameService
Where
port is 5554 by default.Request headers
The following header must be sent with the request:
- Authorization
- This header must be sent to perform authentication.
Request body format
None.
Security requirements
The caller must be authenticated as an appliance user with sufficient authority. For more information about security, see Types of user and how they are authenticated and User authorization, credential mapping, and access profiles.
Response status codes
- 200
- Information retrieved successfully.
- 400
- Invalid data provided.
- 401
- Not authenticated.
- 403
- Not authorized.
Response headers
- Content-Type
- This header is returned with a value of
application/json
.
Response body format
The response is in JSON format. The response includes the following fields:
- mAdminState
- String.
- SearchDomains
- JSON structure containing definitions of domain-suffixes in the search table for non-qualified
domain names. The structure contains the following field for each domain suffix defined:
SearchDomain
- String.
- NameServers
- JSON structure containing a list of DNS servers. The structure contains the following fields for
each list member:
IPAddress
- String.
UDPPort
- Integer.
TCPPort
- Integer.
MaxRetries
- Integer.
- StaticHosts
- JSON structure containing a list of static hosts. The structure contains the following fields
for each list member:
Hostname
- String.
IPAddress
- String.
UserSummary
- String.
- ForceIPPreference
- String.
- LoadBalanceAlgorithm
- String
- MaxRetries
- Integer.
- Timeout
- Integer.
Examples
The following example requests the DNS service settings on the appliance:
The following URL is used with the HTTP GET
method:
GET /mgmt/config/default/DNSNameService
The following listing shows the received response:
{
"_links": {
"self": {
"href": "/mgmt/config/default/DNSNameService
"doc": {
"href": "/mgmt/docs/config/DNSNameService"
}
},
"DNSNameService": {
"name": "Main-Name-Service",
"_links": {
"self": {
"href": "/mgmt/config/default/DNSNameService/Main-Name-Service"
},
"doc": {
"href": "/mgmt/docs/config/DNSNameService"
}
},
"mAdminState": "enabled",
"SearchDomains": [
{
"SearchDomain" : "wwillow.paddock.com"},
{
"SearchDomain" : "jdawash.paddock.com"
}
],
"NameServers": [
{
"IPAddress" : "198.51.100.11",
"UDPPort" : 53,
"TCPPort" : 53,
"MaxRetries" : 3
},
{
"IPAddress" : "198.51.100.25",
"UDPPort" : 53,
"TCPPort" : 53,
"MaxRetries" : 3
}
],
"StaticHosts": {
"Hostname" : "localhost",
"IPAddress" : "127.0.0.1",
"UserSummary" : ""
},
"ForceIPPreference": "off",
"LoadBalanceAlgorithm": "round-robin",
"MaxRetries": 2,
"Timeout": 5
}
}