Adding a Private View to a Resolver

You can create and attach a view to a resolver in addition to the default view, so that their zones are resolvable in the VCN.

Each VCN's dedicated resolver has a protected default view. You can add custom zones to the default view, within restrictions on zone names to avoid collisions with protected zones. If a resolver is deleted, and its default view contains nonprotected zones, then the default view is converted to a nonprotected view instead of being deleted. You can create and attach a view to a resolver in addition to the default view, so that their zones are resolvable in the VCN.

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

    1. On the VCN list page, select the VCN that you want to work with. This takes you to the VCN's details.
    2. Look in the VCN details tab and select the name of the DNS resolver for the VCN. The Private Resolver Details screen appears.
    3. From the Private Resolver Details screen, select Manage Private Views. The Manage Private Views screen appears.
    4. Select an already created private view from the drop down menu in the numbered Private view list.
    5. To associate another view, select Additional Private View select another view.
    6. When you're finished, select Save Changes.
      Views created automatically by Oracle are available in addition to views you create.
  • Use the resolver update command and required parameters to add a private view to a resolver:

    oci dns resolver update --resolver-id resolver_OCID --attached-views '[{"view-id":"view_ocid"}]' ... [OPTIONS]

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

  • Run the UpdateResolver operation to add a private view to a resolver. Include the AttachedViews attribute.