/
infoblox_zone_delegated Resource

infoblox_zone_delegated Resource

The infoblox_zone_delegated resource enables you to perform the create, update, and delete operations on the delegated zones in a NIOS appliance. The resource represents the ‘zone_delegated’ WAPI object in NIOS.

A delegated zone must be a subzone of an authoritative zone. For more information about delegated zones, refer to the Infoblox NIOS Documentation.

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

Parameter

Required/Optional

Description

Parameter

Required/Optional

Description

fqdn

Required

Specifies the name (in FQDN format) of the delegated DNS zone.
For a reverse mapping zone, specify the IP address in CIDR format. For other zones, specify the value in FQDN format. This value can be in Unicode format.
Example:

  • Reverse-mapping zone: 10.1.0.0/24

  • Forward-mapping zone: zone1.authzone.com

Note that once the zone is created, the zone name (fqdn) cannot be updated.

delegate_to

Required only if ns_group is not set

Specifies the information of the remote name server that maintains the data for the delegated zone. Define the following fields:

  • name: The FQDN of the name server.

  • address: The IP address of the name server.

disable

Optional

Determines whether the zone is disabled or not.
Disables the zone when it is set to true. The default value is false.

locked

Optional

Determines whether the other administrators must be restricted from making conflicting changes.
When you set this parameter to true, other administrators are restricted from making changes. The default value is false.

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

ns_group

Required only if delegate_to is not set

Specifies the delegation NS group that is bound to the delegated zone.

delegated_ttl

Optional

Specifies the TTL value for the delegated zone.
The default value is ttlUndef.

view

Optional

Specifies the name of the DNS view in which the delegated zone must exist.
If a value is not specified, default is considered as the DNS view name.

zone_format

Optional

Determines the format of the DNS zone.
Valid values are: FORWARD, IPV4, and IPV6.
The default value is FORWARD.

comment

Optional

Describes the delegated DNS zone.

ext_attrs

Optional

Specifies the set of NIOS extensible attributes that will be attached to the DNS view.

Example of Zone Delegated Resource

resource "infoblox_zone_delegated" "subdomain" {
  fqdn = "subdomain.example.com"
  delegate_to {
    name = "ns-1488.awsdns-58.org"
    address = "10.1.1.1"
  }
  delegate_to {
    name = "ns-2034.awsdns-62.co.uk"
    address = "10.10.1.1"
  }
}

//zone delegated, with fqdn and ns_group
resource "infoblox_zone_delegated" "zone_delegated2" {
  fqdn = "min_params.ex.org"
  ns_group = "test"
}
 

//zone delegated with full set of parameters
resource "infoblox_zone_delegated" "zone_delegated3" {
  fqdn = "max_params.ex.org"
  view = "nondefault_view"
  zone_format = "FORWARD"
  comment = "test sample delegated zone"
  delegate_to {
     name = "te32.dz.ex.com"
     address = "10.0.0.1"
  }
  locked = true
  delegated_ttl = 60
  ext_attrs = jsonencode({
     "Site" = "LA"
  })
  disable = true
}

 

//delegated IPV6 reverse mapping zone
resource "infoblox_zone_delegated" "zone_delegated4" {
  fqdn = "3001:db8::/64"
  comment = "zone delegated IPV6"
  zone_format = "IPV6"
  delegate_to {
    name = "test22.dz.ex.com"
    address = "10.0.0.1"
  }
}

Related content