turbot/net

GitHub
steampipe plugin install netsteampipe plugin install net

Table: net_dns_record

DNS records associated with a given domain.

The default DNS server used for all requests is the Google global public server, 8.8.8.8. This default can be overriden in 2 ways:

  • Update the dns_server configuration argument.

  • Specify dns_server in the query, which overrides the default and dns_server configuration argument. For instance, to use Cloudflare's global public server instead:

    select
    *
    from
    net_dns_record
    where
    domain = 'steampipe.io'
    and dns_server = '1.1.1.1:53';

Note: A domain must be provided in all queries to this table.

Examples

DNS records for a domain

select
*
from
net_dns_record
where
domain = 'steampipe.io';

List TXT records for a domain

select
value,
ttl
from
net_dns_record
where
domain = 'github.com'
and type = 'TXT';

Mail server records for a domain in priority order

select
target,
priority,
ttl
from
net_dns_record
where
domain = 'turbot.com'
and type = 'MX'
order by
priority;

Query examples

Control examples

.inspect net_dns_record

DNS records associated with a given domain.

NameTypeDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
dns_servertextDNS server name and port used for queries.
domaintextDomain name for the record.
expirebigintSpecifies SOA expire value in seconds, which indicates when the zone data is no longer authoritative.
ipinetIP address for the record, such as for A records.
minimumbigintSpecifies the SOA minimum value in seconds, which indicates how long negative answers are stored in the DNS cache.
prioritybigintPriority of the record, such as for MX records.
refreshbigintSpecifies the SOA refresh interval in seconds, which configures how often a name server should check its primary server to see if there has been any updates to the zone which it does by comparing Serial numbers.
retrybigintSpecifies SOA retry value in seconds, which indicates how long a name server should wait to retry an attempt to get fresh zone data from the primary name server if the first attempt should fail.
serialbigintSpecifies the SOA serial number.
tagtextAn ASCII string that represents the identifier of the property represented by the record, such as for CAA records.
targettextTarget of the record, such as the target address for CNAME records.
ttlbigintTime To Live in seconds for the record in DNS cache.
typetextType of the DNS record: A, CNAME, MX, etc.
valuetextValue of the record, such as the text of a TXT record.