Creating a Secondary DNS Zone
Create a secondary zone to set up ingress from an external DNS provider to Oracle Cloud Infrastructure (OCI) DNS.
- Use the OCI API before you begin setup. ListZoneTransferServers returns a list of IP addresses provided for the specified root compartment. The provided transfer name server IP addresses vary by region. For more information, see Listing Zone Transfer Servers.
- If you're using the Console, the list of zone transfer servers appears in the Create public zone page.
You can optionally configure secondary DNS to use a TSIG key. If you don't already have an existing TSIG key, create one before you begin setting up the secondary DNS zone. For more information, see TSIG Keys.
See Secondary DNS for a feature overview and more information.
Use the zone create command and required parameters to create a secondary zone:
oci dns zone create --compartment-id compartment_id --name "zone_name" --zone-type SECONDARY --scope GLOBAL --external-masters '[{"address":"external_server_ip","port":"port_number","tsigKeyId":"tsig_key_OCID"}]' ... [OPTIONS]
The
external-masters
option becomes a required parameter when the zoneType value is SECONDARY.For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
Run the CreateZone operation to create a secondary zone. Specify the
zoneType
asSECONDARY
and the scope asGLOBAL
.The
externalMasters
attribute becomes a required parameter when the zoneType value is SECONDARY.