Get/Set the Search Domain
- Last Updated: October 14, 2024
- 1 minute read
- LoadMaster
- Multi-Tenant LoadMaster
- Documentation
The get/set commands can be used to retrieve or configure the domain name to be prepended to requests to the DNS name server.
Example Command
Set (Configure):
curl -k "https://<Username>:<Password>@<MTIPAddress>/mtaccess/set?param=searchlist&value=<DomainName>"Get (Retrieve):
curl -k "https://<Username>:<Password>@<MTIPAddress>/mtaccess/get?param=searchlist"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 searchlist. |
Yes |
|
value |
String |
The value to set the parameter to. In this case, enter the domain name that is to be prepended to requests to the DNS nameserver. Multiple domain names can be entered by using a comma-separated list. |
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><searchlist>Example.com</searchlist></Data></Success></Response>