Zones¶
DNS zone management covers authoritative, forward, delegated, and stub zones.
show zone¶
List all zones or show a specific zone.
Syntax:
WAPI: GET zone_auth / zone_forward / zone_delegated / zone_stub
Without arguments, ibcli queries all four zone types in fallback order and prints every zone found.
Show a specific zone:
Show only forward zones:
Filter by view:
configure zone add¶
Add a new DNS zone.
Syntax:
configure zone add <zone>
[comment=<comment>]
[primary=<name>]
[secondary=<name>]
[ns_group=<name>]
[view=<name>]
[forward_to=<name,ip>]
[delegate_to=<name,ip>]
[stub_from=<name,ip>]
[set <key> <value> ...]
WAPI: POST zone_auth / zone_forward / zone_delegated / zone_stub (selected automatically)
Zone type selection:
| Keyword present | WAPI object |
|---|---|
forward_to= |
zone_forward |
delegate_to= |
zone_delegated |
stub_from= |
zone_stub |
| (none of the above) | zone_auth |
Examples:
Add an authoritative zone:
Add a zone with a comment and NS group:
Add a forward zone:
Multiple forwarders:
configure zone add external.example.com \
forward_to=ns1.upstream.net,1.2.3.4 \
forward_to=ns2.upstream.net,1.2.3.5
Add a reverse zone (CIDR auto-converts to arpa form):
Add an authoritative zone with secondary members:
Set-chain depth cap
Up to 16 set key=value pairs are accepted per command. See Extensible Attributes.
configure zone \<zone> modify¶
Modify an existing zone.
Syntax:
configure zone <zone> modify
[comment=<comment>]
[primary=<name>]
[secondary=<name>]
[ns_group=<name>]
[view=<name>]
[set <key> <value> ...]
WAPI: GET <zone_type>?fqdn=<zone> then PUT <ref>
ibcli looks up the zone reference across all four zone types (auth → forward → delegated → stub) before issuing the PUT.
Change the NS group:
configure zone \<zone> delete¶
Delete a zone.
Syntax:
WAPI: GET <zone_type>?fqdn=<zone> then DELETE <ref>
Note
The zone type is auto-detected by searching zone_auth, then zone_forward, zone_delegated, zone_stub. The first match is deleted.
show zone ns_group¶
List or show a specific NS group.
Syntax:
WAPI: GET nsgroup
show zone shared_record_group¶
Syntax:
WAPI: GET sharedrecordgroup