Skip to content
Command Line Interface

zone.sh

This script allows you to create a new DNS zone for the selected client, update the name, type (master|slave) or status (enabled|disabled) for the DNS zone, or remove it.

Usage

bash
zone.sh <command> <zone_name> <options>

Examples

In these examples, you are logged in as root and you call the scripts by their directory.

Add New DNS Zone

Simple Add DNS Zone Example:

bash
zone.sh --create "0.3.6.6.IN-ADDR.ARPA." --user newclient --zone_type master

Add DNS Zone Using Global Templates Example:

bash
zone.sh --create "foo.bar." \
  --user newclient \
  --zone_type master \
  --from_template_global "BasicDNS" \
  --template_ip "123.123.123.123"

Change Zone Settings

bash
zone.sh --update "foo.bar." --zone_type slave

Get Zone Details

bash
zone.sh --info "foo.bar."

returns an answer like this:

DNS Zone name:[foo.bar.]
DNS Zone type:[Slave/Forward]
Zone status:[enabled]
Login:[newclient]
Last updated: Dec 10, 2025