Skip to main content

GetDomainDNSDetails

This Script is part of the Common Scripts Pack.#

Returns DNS details for a domain

Script Data#


NameDescription
Script Typepython3
Tags
Cortex XSOAR Version5.0.0

Inputs#


Argument NameDescription
domainThe domain to query
serverIP of the DNS Server to use (default: system settings)
use_tcpUse TCP for the query (default: False)
qtypeComma separated list of query types (default: CNAME,NS,A,AAAA)

Outputs#


PathDescriptionType
DomainDNSDetails.ADomain A records.String
DomainDNSDetails.AAAADomain AAAA records.String
DomainDNSDetails.CNAMEDomain CNAME records.String
DomainDNSDetails.NSDomain NS records.String
DomainDNSDetails.domainDomain name used in the query.String
DomainDNSDetails.serverName 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#

domainserverCNAMENSAAAAA
example.comsystemtest.example.coma.iana-servers.net.,
b.iana-servers.net.
10.11.12.132001:2001:200:1:200:2001:2001:2001