Details
| ID | GetDomainDNSDetails |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/netutils:1.0.0.11867191 |
README
Returns DNS details for a domain
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | |
| Cortex XSOAR Version | 5.0.0 |
Inputs
| Argument Name | Description |
|---|---|
| domain | The domain to query |
| server | IP of the DNS Server to use (default: system settings) |
| use_tcp | Use TCP for the query (default: False) |
| qtype | Comma separated list of query types (default: CNAME,NS,A,AAAA) |
Outputs
| Path | Description | Type |
|---|---|---|
| DomainDNSDetails.A | Domain A records. | String |
| DomainDNSDetails.AAAA | Domain AAAA records. | String |
| DomainDNSDetails.CNAME | Domain CNAME records. | String |
| DomainDNSDetails.NS | Domain NS records. | String |
| DomainDNSDetails.domain | Domain name used in the query. | String |
| DomainDNSDetails.server | Name server that returned the result. | String |
Script Example
!GetDomainDNSDetails domain=example.com
Context Example
{
"DomainDNSDetails": {
"A": [
"10.11.12.13"
],
"AAAA": [
"2001:2001:200:1:200:2001:2001:2001"
],
"CNAME": [
"test.example.com"
],
"NS": [
"a.iana-servers.net.",
"b.iana-servers.net."
],
"domain": "example.com",
"server": "system"
}
}
Human Readable Output
Domain DNS Details for example.com
domain server CNAME NS A AAAA example.com system test.example.com a.iana-servers.net.,
b.iana-servers.net.10.11.12.13 2001:2001:200:1:200:2001:2001:2001
args: - description: The domain to query. name: domain required: true - description: "IP of the DNS Server to use (default: system settings)." name: server - description: "Use TCP for the query (default: false)." name: use_tcp auto: PREDEFINED predefined: - 'true' - 'false' defaultValue: 'false' - description: "Comma separated list of query types (default: CNAME,NS,A,AAAA)." name: qtype defaultValue: CNAME,NS,A,AAAA comment: Returns DNS details for a domain. commonfields: id: GetDomainDNSDetails version: -1 name: GetDomainDNSDetails outputs: - contextPath: DomainDNSDetails.A description: Domain A records. type: String - contextPath: DomainDNSDetails.AAAA description: Domain AAAA records. type: String - contextPath: DomainDNSDetails.CNAME description: Domain CNAME records. type: String - contextPath: DomainDNSDetails.NS description: Domain NS records. type: String - contextPath: DomainDNSDetails.domain description: Domain name used in the query. type: String - contextPath: DomainDNSDetails.server description: Name server that returned the result. type: String script: '-' tags: [] timeout: '0' type: python subtype: python3 dockerimage: demisto/netutils:1.0.0.11867191 fromversion: 5.0.0 tests: - No tests (auto formatted)