Get/Set the Nameserver
- Last Updated: October 14, 2024
- 1 minute read
- LoadMaster
- Multi-Tenant LoadMaster
- Documentation
The nameserver can be retrieved/configured using the get/set commands.
Example Command
Set (Configure):
curl -k "https://<Username>:<Password>@<MTIPAddress>/mtaccess/set?param=namserver&value=<DNSServerIPAddress>"Get (Retrieve)
curl -k "https://<Username>:<Password>@<MTIPAddress>/mtaccess/get?param=namserver"Available Parameters
|
Parameter |
Parameter Type |
Parameter Description |
Mandatory |
|---|---|---|---|
|
param |
String |
The name of the parameter to be retrieved/configured. In this case, it should be set to namserver. |
Yes |
|
value |
String |
The value to set the parameter to. In this case, enter the IP address of a DNS server which is to be used to resolve names locally on the Multi-Tenant LoadMaster. Up to three IP addresses can be specified using a comma-separated list. To delete the list of nameservers, set the parameter value to an empty string. |
Yes - if setting. No - if getting. |
Example Output
Set (Configure):
<?xml version="1.0" encoding="ISO-8859-1"?><Response stat="200" code="OK"><Success>Command completed ok</Success></Response>Get (Retrieve):
<Response stat="200" code="ok"><Success><Data><namserver>10.0.70.2</namserver></Data></Success></Response>