/network/dns

Resource URI

/network/dns

HTTP GET

Retrieves the DNS information on the system.

GET /network/dns

Method

Response Payload

JSON

{
  "hostname": "xms.localdomain",
  "search": "dialogic.com",
  "nameserver": [
    {
      "addr": "10.20.106.1"
    },
    {
      "addr": "10.20.106.2"
    }
  ]
}

HTTP PUT

Configures the DNS information on the system.

PUT /network/dns

Method

Request Payload

JSON

{
   "hostname" : "ab.xyz.com",
   "search"   : "xyz.com",
   "nameserver":[{
      "addr": "192.168.23.1"
    },
    {
      "addr": "192.168.23.2"
    }]
}