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.

Private DNS also provides DNS resolution across networks (for example, another VCN within the same region, cross region, or an external network). See Private DNS and Private Views for a feature overview and more information.

For general service information, see the DNS Service Overview.

Note

  • 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.
    1. Open the navigation menu and click Networking. Under DNS management, click Private views.
    2. Under List scope, select the compartment that contains private view that you want to add a zone to.
    3. Click the name of the view.
    4. Click Create zone.
      Note

      The Zone type is set to Primary and is read-only.
    5. Enter a descriptive name for the zone. Avoid entering confidential information.
    6. Select a compartment to create the zone in.
    7. Click Create.
  • 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.

    sd
  • Run the CreateZone operation to create a private zone in a specified private view.

    Specify the zone scope as PRIVATE. Include the viewId 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.