dns_mx_recorddns_mx_reportdns_ns_recorddns_ns_reportdns_parent_ns_recorddns_parent_recorddns_parent_reportdns_soa_recorddns_soa_reportsecurity_headers_content_security_policy_checksecurity_headers_missing_headerssecurity_headers_permissions_policy_checksecurity_headers_raw_header_listsecurity_headers_referrer_policy_checksecurity_headers_strict_transport_security_checksecurity_headers_x_content_type_options_checksecurity_headers_x_frame_options_checkssl_additional_certificate_recordssl_certificate_recordssl_certificate_reportssl_server_cbc_cipher_countssl_server_configuration_checksssl_server_insecure_cipher_countssl_server_rc4_cipher_countssl_server_supported_cipher_suitesssl_server_supported_protocols
Query: dns_mx_record
Usage
powerpipe query net_insights.query.dns_mx_record
Steampipe Tables
SQL
with domain_records as ( select * from net_dns_record where domain = $1 and type = 'MX'),ns_ips as ( select * from net_dns_record where domain in (select target from domain_records))select domain_records.priority as "Priority", domain_records.target as "Domain", ns_ips.ip as "IP Address", ns_ips.ttl as "TTL"from domain_records inner join ns_ips on domain_records.target = ns_ips.domainwhere ns_ips.type = 'A' and domain_records.type = 'MX'order by domain_records.priority;
Params
Args | Name | Default | Description | Variable |
---|---|---|---|---|
$1 | domain_name_input |
Dashboards
The query is used in the dashboards: