Skip to content

Get DNS Servers

Get DNS Servers

Retrieves the currently configured primary and secondary DNS servers.

phantom-api dns get_dns_servers

Response Model: GetDNSServersResult

Field Type Description
primary string Primary DNS server
secondary string Secondary DNS server
Example Response
{
  "success": true,
  "data": {
    "primary": "8.8.8.8",
    "secondary": "1.1.1.1"
  }
}