Creating a Private DNS Zone in a Private View
Create a private zone in a private view to manage records and hostname resolution for applications running within and between virtual cloud networks (VCNs), and on-premises or other private networks.
For general service information, see the DNS Service Overview.
- 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 in a specified private view:
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.
sdRun the CreateZone operation to create a private zone in a specified private view.
Specify the zone
scope
asPRIVATE
. Include theviewId
parameter, populated with the OCID of the view you want to create the zone in.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.