Reads or configures DNS server addresses.
API URL
GET https://<host>/wsapis/v2.0.0/devicemgmt/mgmtinterface/dns
or
POST https://<host>/wsapis/v2.0.0/devicemgmt/mgmtinterface/dns/static
Payload
POST https://<host>/wsapis/v2.0.0/devicemgmt/mgmtinterface/dns/static
Configure the Primary DNS:
{"primary": "172.16.2.1"}
Configure the Secondary DNS:
{"secondary": "172.16.2.2"}
Sample curl requests
Update Primary DNS
curl -skg -H "$auth-token" https://172.16.12.151/wsapis/v2.0.0/devicemgmt/mgmtinterface/dns/static -d '{"primary": "172.16.2.3"}' -H 'content-type:application/json'
{
"error": false,
"message": "updated object"
}Update secondary DNS
curl -skg -H "$c" https://172.16.12.151/wsapis/v2.0.0/devicemgmt/mgmtinterface/dns/static -d '{"secondary": "172.16.2.3"}' -H 'content-type:application/json' { "error": false, "message": "updated object" }
Availability
This command is available on the following platforms:
Network Security
Helix Enterprise
Authentication
Standard WSAPI authentication
Response mime type
application/json