steampipe plugin install oci

Table: oci_dns_zone - Query OCI DNS Zones using SQL

Oracle Cloud Infrastructure's DNS service allows you to manage and control your DNS zones. It provides a global, scalable, high-performance DNS solution that can direct your end users to your internet applications by translating domain names into IP addresses. This service supports various types of DNS records, including A, AAAA, CNAME, MX, PTR, and TXT.

Table Usage Guide

The oci_dns_zone table provides insights into DNS zones within Oracle Cloud Infrastructure's DNS service. As a network administrator, explore zone-specific details through this table, including the zone's name, state, and associated records. Utilize it to uncover information about zones, such as those with specific types of records, the time to live (TTL) settings for each record, and the verification of zone configurations.

Examples

Basic info

Discover the segments of your OCI DNS zones that are currently active or inactive. This can help you understand when each zone was created, allowing you to manage and optimize your resources effectively.

select
id,
name,
lifecycle_state,
time_created
from
oci_dns_zone;
select
id,
name,
lifecycle_state,
time_created
from
oci_dns_zone;

List DNS zones which are not active

Explore DNS zones that are not currently active, to identify potential issues or areas for clean-up. This can help in maintaining an efficient and clean DNS system.

select
name,
id,
lifecycle_state
from
oci_dns_zone
where
lifecycle_state in ('CREATING', 'DELETED', 'DELETING', 'FAILED');
select
name,
id,
lifecycle_state
from
oci_dns_zone
where
lifecycle_state in ('CREATING', 'DELETED', 'DELETING', 'FAILED');

Schema for oci_dns_zone

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
compartment_idtext=The OCID of the compartment in Tenant in which the resource is located.
defined_tagsjsonbDefined tags for resource. Defined tags are set up in your tenancy by an administrator. Only users granted permission to work with the defined tags can apply them to resources.
external_mastersjsonbExternal master servers for the zone.
freeform_tagsjsonbFree-form tags for resource. This tags can be applied by any user with permissions on the resource.
idtext=The OCID of the zone.
is_protectedbooleanA Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.
lifecycle_statetext=The current state of the zone resource.
nametext=The name of the zone.
nameserversjsonbThe authoritative nameservers for the zone.
scopetext=The scope of the zone.
selftextThe canonical absolute URL of the resource.
serialbigintThe current serial of the zone. As seen in the zone's SOA record.
tagsjsonbA map of tags for the resource.
tenant_idtextThe OCID of the Tenant in which the resource is located.
tenant_nametextThe name of the Tenant in which the resource is located.
time_createdtimestamp with time zoneThe date and time the zone was created.
titletextTitle of the resource.
versiontextVersion is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.
view_idtext=The OCID of the private view containing the zone.
zone_typetext=The type of the zone. Must be either `PRIMARY` or `SECONDARY`. `SECONDARY` is only supported for GLOBAL zones.

Export

This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- oci

You can pass the configuration to the command with the --config argument:

steampipe_export_oci --config '<your_config>' oci_dns_zone