Creating a Public DNS Zone

Create a public DNS zone to hold the trusted DNS records that reside on Oracle Cloud Infrastructure’s nameservers.

You can create public zones with publicly available domain names reachable on the internet. For more information, see Public DNS.

Create a primary zone to manage zone records. To pull records for the zone from an external primary server, create a secondary zone.
    1. Open the navigation menu and click Networking. Under DNS management, click Zones.
    2. On the Public zones tab, click Create zone.
    3. On the Create public zone panel, choose the method to use to create the zone, Manual or Import.
    4. If you chose the manual method, enter the zone information:
      • Zone type: Select Primary.
      • Zone name: Enter a descriptive name for the zone. Avoid entering confidential information.
      • Create in compartment: Specify the compartment to create the zone in. Be sure you have permission to work in the compartment.
    5. If you chose the import method, then drag, select, or paste a valid zone file into the panel.

      The zone is imported as a primary zone.

    6. (Optional) Configure one or more secondary servers to receive zone transfers.
      1. Click Add additional server IP.
      2. Enter a valid IPv4 or IPv6 address.
      3. Select a TSIG key.
    7. (Optional) Click Show Advanced Options: to apply tags to the zone.
      If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, skip this option (you can apply tags later) or ask an administrator.
    8. Click Create.

      The zone is created and published with the necessary SOA and NS records, and its details page is displayed.

      Next, you can delegate the public zone with a registrar or add records to the zone.

  • Use the zone create command and required parameters to create a public primary zone:

    oci dns zone create --compartment-id compartment_id --name "zone_name" --zone-type PRIMARY --scope GLOBAL... [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. For information on adding a record to your zone, see Adding a Record to a DNS Zone.

  • Run the CreateZone operation to create a public primary zone. Specify the zone type as PRIMARY and zone scope as GLOBAL.

    The system creates and publishes the zone, complete with the necessary SOA and NS records. The details for the zone appear. For information on adding a record to your zone, see Adding a Record to a DNS Zone.