/
infoblox_zone_delegated Data Source

infoblox_zone_delegated Data Source

Use the infoblox_zone_delegated data source to retrieve the following information about a delegated DNS zone from the corresponding object in NIOS:

Parameter

Description

Example

Parameter

Description

Example

fqdn

The name of the DNS zone. For a reverse zone, this is in CIDR format.
For other zones, this is in FQDN format. This value can be in unicode format.

demozone.authzone.com

For reverse mapping zone: 11.10.0.0/24

delegate_to

The remote server to which the NIOS appliance redirects queries for data for the delegated zone.

name = "test22.dz.ex.com"
address = "10.0.0.1"

view

The name of the DNS view in which the zone resides.

external

disable

The flag that determines whether the zone is disabled or not.

false

locked

The flag that restricts other administrators from making any changes.

Note that this flag is for administration purposes only. The zone will continue to serve DNS data even when it is locked.

false

ns_group

The name server group that serves DNS for this zone.
The delegation NS group that is bound to the delegated zone.

demoGroup

delegated_ttl

The TTL value for the delegated zone.

20

zone_format

The field that determines the format of the zone. The valid values are FORWARD, IPV4 and IPV6.

FORWARD

comment

A description of the DNS zone. This is a regular comment.

The delegated zone object in NIOS.

ext_attrs

The set of extensible attributes of the DNS view, if any.
The content is formatted as a string of JSON map.

{\"Location\":\"unknown\",\"TestEA\":\"ZoneTesting\"}

To retrieve information about delegated zones that match the specified filters, use the filters argument and specify the parameters mentioned in the below table. These are the searchable parameters of the corresponding object in Infoblox NIOS WAPI. If you do not specify any parameter, the data source retrieves information about all delegated zones in the NIOS Grid.

The following table describes the parameters you can define in the infoblox_zone_delegated data source block:

Parameter

Description

Parameter

Description

view

Specifies the name of the DNS view in which the DNS zone exists.
If a value is not specified, matching objects are retrieved from all DNS views in the NIOS Grid.

fqdn

Specifies the name of the DNS zone.

zone_format

Specifies the format of the DNS zone.

comment

The description of the DNS zone.

Extensible Attributes

Specifies the extensible attributes specified for the DNS zone. You must specify the key/value pair within the filters argument.
Example:
filters = {
"*Site" = "some test site"
}

Example of the Zone Delegated Data Source Block

resource "infoblox_zone_delegated" "zone_delegate_to" {
fqdn = "zone_delegate.test_fwzone"
delegate_to {
name = "test22.dz.ex.com"
address = "10.0.0.1"
}
delegate_to {
name = "test2.dz.ex.com"
address = "10.0.0.2"
}
}


// accessing Zone delegated by specifying fqdn and view
data "infoblox_zone_delegated" "data_zone_delegated" {
filters = {
fqdn = "zone_delegate.test_fwzone"
view = "default"
}
// This is just to ensure that the record has been be created
depends_on = [infoblox_zone_delegated.zone_delegate_to]
}

// returns matching Zone delegated with fqdn and view, if any
output "zone_delegated_data3" {
value = data.infoblox_zone_delegated.data_zone_delegated
}

Related content