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_createdfrom oci_dns_zone;
select id, name, lifecycle_state, time_createdfrom 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_statefrom oci_dns_zonewhere lifecycle_state in ('CREATING', 'DELETED', 'DELETING', 'FAILED');
select name, id, lifecycle_statefrom oci_dns_zonewhere lifecycle_state in ('CREATING', 'DELETED', 'DELETING', 'FAILED');
Schema for oci_dns_zone
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
compartment_id | text | = | The OCID of the compartment in Tenant in which the resource is located. |
defined_tags | jsonb | Defined 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_masters | jsonb | External master servers for the zone. | |
freeform_tags | jsonb | Free-form tags for resource. This tags can be applied by any user with permissions on the resource. | |
id | text | = | The OCID of the zone. |
is_protected | boolean | A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed. | |
lifecycle_state | text | = | The current state of the zone resource. |
name | text | = | The name of the zone. |
nameservers | jsonb | The authoritative nameservers for the zone. | |
scope | text | = | The scope of the zone. |
self | text | The canonical absolute URL of the resource. | |
serial | bigint | The current serial of the zone. As seen in the zone's SOA record. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
tags | jsonb | A map of tags for the resource. | |
tenant_id | text | =, !=, ~~, ~~*, !~~, !~~* | The OCID of the Tenant in which the resource is located. |
tenant_name | text | The name of the Tenant in which the resource is located. | |
time_created | timestamp with time zone | The date and time the zone was created. | |
title | text | Title of the resource. | |
version | text | Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived. | |
view_id | text | = | The OCID of the private view containing the zone. |
zone_type | text | = | 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