let’s talk about Oracle Cloud Private DNS. Private DNS service in OCI allows you to define your own DNS resolver name.
There are three components of Private DNS:
- Private DNS Zones: These contain data only accessible from within a Virtual Cloud Network for example private IPs. It provides responses only for clients that can reach it through a VCN. You can duplicate zones across VCNs.
- Private DNS Views: It is the collection of Private DNS Zones. It is referenced from a Private DNS resolver to manage how DNS queries are answered. Multiple private DNS resolvers can also use it.
- Private DNS Resolver: This is the one that responds to the DNS queries. It follows a pattern to provide a response to a DNS query this is depicted in the below diagram.
![](https://abkot.com/wp-content/uploads/2023/02/image-1024x191.png)
Let’s dive into setting up Private DNS. Firstly, you will have to create DNS Zone, followed by DNS views and then DNS resolvers.
Create Private DNS Zones
You can follow the steps to get the DNS ZOne creates.
1. Navigate to Networking and under DNS Management, click on Zones
![](https://abkot.com/wp-content/uploads/2023/02/image-2.png)
2. On the Zones page click on the tab Private Zones and click on Create Zone.
![](https://abkot.com/wp-content/uploads/2023/02/image-3-1024x412.png)
3. Provide below details:
- Zone Name: e.g. abc.xyz.com
- Select the right Compartment.
- Zone Type (read-only field)
- You can choose the existing DNS Private View or create a new one in the DNS Private View box. As I am building Private DNS from scratch, I will select Create New Private View and proceed. Note: The Private View will be created in the same compartment as Private Zone.
- In the Name text box, provide a meaningful name for the new private view.
- Optionally you can provide Tag by clicking on Advance options.
- Now click on Create.
The details of the zone will appear after completing the necessary SOA and NA records.
![](https://abkot.com/wp-content/uploads/2023/02/image-4-1024x428.png)
Follow the steps below to associate DNS Private View with a DNS Resolver.
1. Navigate to VCN for which you intended to use the Private DNS.
![](https://abkot.com/wp-content/uploads/2023/02/image-5-1024x368.png)
2. On the VCN Information tab you will find a link next to DNS Resolver. Click on the link to display private resolver details.
![](https://abkot.com/wp-content/uploads/2023/02/image-6-1024x428.png)
3. On this page click on Manage Private Views and provide the name of the Private View created while creating a private zone. Once done, you will be able to see a line added to the Manage Private Views Table.
Thanks for reading my blog, I will be delighted if you can provide me with your feedback. It will help me to improve my future blogs.