/
infoblox_zone_forward Data Source

infoblox_zone_forward Data Source

The data source for the forward zone object allows you to get the following parameters for a forward zone resource:

Parameter

Description

Example

Parameter

Description

Example

view

The name of the DNS view in which the forward zone should exist.

default

fqdn

The name of the DNS zone in FQDN format.

24.0.0.0/24

external_ns_group

The forward/stub server name server group that is assigned for the zone.

stub server

ns_group

The forwarding member name server group that is assigned for the zone.

test

forward_to

The information of the default or custom zone forwarder to which the NIOS appliance forwards queries for a specified zone.

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

forwarders_only

Indicates weather the appliance sends queries to forwarders only.

false

forwarding_servers

The information of the forwarding members to which the NIOS appliance forwards queries for a specified zone.

{
name = "infoblox.172_28_83_0"
forwarders_only = true
use_override_forwarders = true
forward_to {
name = "kk.fwd.com"
address = "10.2.1.31"
}

zone_format

The format of the DNS zone.

FORWARD

disable

Indicates whether the zone is disabled.

false

comment

A description of the network. This is a regular comment.

Untrusted network

ext_attrs

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

{\"Owner\":\"State Library\",\"Administrator\":\"unknown\"}

To retrieve information about forward 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 forward zones in the NIOS Grid.

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

Parameter

Alias*

Description

Parameter

Alias*

Description

fqdn

cidr

Specifies the name of the DNS zone in FQDN format.

view

dns_view

Specifies the name of the DNS view in which the forward zone exists.

zone_format

-

Determines the format of the DNS zone.

comment

comment

Describes the forward zone.

Extensible Attributes

-

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

*Aliases are the parameter names used in the prior releases of Infoblox IPAM Plug-In for Terraform. Do not use the alias names for parameters in the data source blocks. Using them can result in error scenarios.

Examples of Zone Forward Data Source

resource "infoblox_zone_forward" "forwardzone_forwardTo" {
fqdn = "zone_forward.ex.org"
forward_to {
name = "test22.dz.ex.com"
address = "10.0.0.1"
}
forward_to {
name = "test2.dz.ex.com"
address = "10.0.0.2"
}
}

// accessing Zone Forward by specifying fqdn and view
data "infoblox_zone_forward" "data_zone_forward" {
filters = {
fqdn = "zone_forward.ex.org"
view = "default"
}
// This is just to ensure that the record has been be created
depends_on = [infoblox_zone_forward.forwardzone_forwardTo]
}

// returns matching Zone Forward with fqdn and view, if any
output "zone_forward_data3" {
value = data.infoblox_zone_forward.data_zone_forward
}

Related content