Moving a DNS Zone Between Compartments

Move a domain name service (DNS) zone from one compartment to another.

See Managing Compartments for information about compartments and access control.

For more information about DNS, see the DNS service overview

    1. On the Public zones or Private zones list page, select the zone you want to work with. If you need help finding the list page, see Listing DNS Zones.
    2. Under List scope, select the compartment that contains the zone.
    3. Find the zone in the list, select its Actions menu (three dots), and select Move resource.
    4. Select a destination compartment from the list.
    5. Select Move resource.
  • Use the zone change-compartment command and required parameters to move a zone to a different compartment:

    oci dns zone change-compartment --zone-id zone_OCID --compartment-id compartment_OCID ... [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.

  • Run the ChangeZoneCompartment operation to move a zone to a different compartment.