Data Source: oci_dns_records

Deprecated. Use oci_dns_rrsets instead.

This data source provides the list of Records in Oracle Cloud Infrastructure DNS service.

Gets all records in the specified zone. The results are sorted by domain in alphabetical order by default. For more information about records, see Resource Record (RR) TYPEs. For private zones, the scope query parameter is required with a value of PRIVATE. When the zone name is provided as a path parameter and PRIVATE is used for the scope query parameter then the viewId query parameter is required.

Example Usage

data "oci_dns_records" "test_records" {
    #Required
    zone_name_or_id = oci_dns_zone_name_or.test_zone_name_or.id

    #Optional
    compartment_id = var.compartment_id
    domain = var.record_domain
    domain_contains = var.record_domain_contains
    rtype = var.record_rtype
    scope = var.record_scope
    view_id = oci_dns_view.test_view.id
    zone_version = var.record_zone_version
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Record Reference

The following attributes are exported: