Creating a Private DNS Zone
Create a private DNS zone to manage records and hostname resolution for applications running within and between virtual cloud networks (VCNs), and on-premises or other private networks.
- Private zones can be viewed only in the region in which they're created.
- You can't create a private zone at or under
oraclevcn.com
within the default protected view of a VCN dedicated resolver.
Use the zone create command and required parameters to create a private zone. Specify the scope as
PRIVATE
.oci dns zone create --compartment-id compartment_id --name "zone_name" --zone-type PRIMARY --scope PRIVATE --view-id view_OCID ... [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
The system creates and publishes the zone, complete with the necessary SOA and NS records. The details for the zone appear. You can view the private view associated with this zone by clicking the Private View name in the Zone Information section. For information on adding a record to your zone, see Adding a Record to a DNS Zone.
Run the CreateZone operation to create a private zone. Specify the zone
scope
asPRIVATE
.The system creates and publishes the zone, complete with the necessary SOA and NS records. The details for the zone appear. You can view the private view associated with this zone by clicking the Private View name in the Zone Information section. For information on adding a record to your zone, see Adding a Record to a DNS Zone.