Moving a Resolver Between Compartments

You can move a resolver from one compartment to another.

See Private DNS resolvers for more information and a feature overview.

See Managing Compartments for information about compartments and access control.

  • You can only edit the resolver name using the console.
    1. From the Virtual Cloud Network Details screen for your VCN, look in the VCN Information tab and click the name of the DNS resolver for the VCN. The Private Resolver Details screen appears.
    2. Click Move resource.
    3. Select a destination compartment from the list.
    4. Click Move resource.
  • Use the resolver change-compartment command and required parameters to move a resolver from one compartment to another:

    oci dns resolver change-compartment --resolver-id resolver_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 ChangeResolverCompartment operation to move a resolver from one compartment to another.