List passiveDns
Namespace: microsoft.graph.security
Note
The Microsoft Graph API for Microsoft Defender Threat Intelligence requires an active Defender Threat Intelligence Portal license and API add-on license for the tenant.
Get a list of passiveDnsRecord resources associated with a host.
This is a forward DNS lookup which queries the IP address of the specified host using its hostname.
This API is supported in the following national cloud deployments.
Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
---|---|---|---|
✅ | ❌ | ❌ | ❌ |
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | ThreatIntelligence.Read.All |
Delegated (personal Microsoft account) | Not supported. |
Application | ThreatIntelligence.Read.All |
HTTP request
GET /security/threatIntelligence/hosts/{hostId}/passiveDns
Optional query parameters
This method supports some of the OData query parameters to help customize the response. For general information, see OData query parameters.
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. |
Request body
Do not supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and a collection of microsoft.graph.security.passiveDnsRecord objects in the response body.
Examples
Request
The following is an example of a request.
GET https://graph.microsoft.com/v1.0/security/threatIntelligence/hosts/contoso.com/passiveDns
Response
The following is an example of the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"value": [
{
"@odata.type": "#microsoft.graph.security.passiveDnsRecord",
"id": "Y29udG9zby5jb20kJDIwLjEwMy44NS4zMyQkZmFsc2U=",
"firstSeenDateTime": "2022-04-18T10:31:12Z",
"lastSeenDateTime": "2023-03-07T13:19:35Z",
"collectedDateTime": "2023-03-07T13:59:34.735Z",
"recordType": "A",
"parentHost": {
"id": "contoso.com"
},
"artifact": {
"@odata.type": "#microsoft.graph.security.ipAddress",
"id": "20.103.85.33"
}
}
]
}
Feedback
Submit and view feedback for