Note:

Use Oracle Cloud Infrastructure DNS to Resolve Native Domains

Introduction

OraStage is a leading company in the energy sector, specializing in renewable energy solutions and innovative power technologies, the company announced a strategic decision to migrate its workloads to Oracle Cloud Infrastructure (OCI) to enhance performance, scalability, and security.

image

Taking into account the specific needs and conditions that OraStage has outlined, the company requires a hybrid Domain Name System (DNS) solution in the cloud, and by hybrid here means to use their own Berkeley Internet Name Domain version 9 (BIND9) DNS system in addition to OCI DNS service, where the final architecture they are looking to build is shown in the following image.

image

OraStage DNS requirements:

This tutorial series will guide you step by step to achieve the outlined requirements above, building the entire solution from scratch. You can easily navigate to each tutorial from the list below:

Overview

In this tutorial, we will focus on handling OCI native domains such as oraclevcn.com and oraclecloud.com. In this section, we will move away from resolving custom domains like orastage.com using BIND9, and instead, explore OCI built-in DNS capabilities.

We will dive into the components of OCI Private DNS, and the key elements involved in query handling, which play crucial roles in managing DNS traffic within OCI private networks. You will notice that we have already used them in some parts of Tutorial 1 and Tutorial 2. These components are:

Together, these components provide powerful tools for managing and customizing DNS within your OCI environment.

By the end of this tutorial, you will have a solid understanding of how to use these OCI DNS components to efficiently manage and resolve queries within your cloud environment.

Objectives

Final architecture

image

Note:

image

Prerequisites

Task 1: Set up Network Components like Routing and Security

Task 1.1: Create a Virtual Cloud Network (LSN-VCN)

Make sure you have the LSN-VCN (10.3.0.0/16) already created, containing LSN-Private-Subnet (10.3.0.0/24).

Task 1.2: Configure Routing and Security for LSN-VCN

Task 1.3: Configure Routing and Security for DNS-VCN

Task 1.4: Configure Routing and Security for Frontend-VCN

Task 1.5: Configure Routing and Security for Backend-VCN

Task 2: Configure OCI Private DNS Components

Task 2.1: Add Private Views to LSN-VCN Resolver

Task 2.2: Configure Listening Endpoint in LSN-VCN Resolver

Task 2.3: Configure Forwarding Rule in Frontend VCN Resolver

image

image

Task 2.4: Configure Forwarding Rule in Backend VCN Resolver

Task 3: Test and Validate

Test Scenario 1: FE-VM to query the listener for BE-VM native domain

As shown in the test scenario, we can retrieve the IP address of the BE-VM native domain, and the ping is working using the FQDN, which means the test is successful.

Test Scenario 2: BE-VM to query the listener for FE-VM native domain

As shown in the test scenario, we can retrieve the IP address of the BE-VM native domain, and the ping is working using the FQDN, which means the test is successful.

Next Steps

In this tutorial, we have used OCI Private Views, Forwarding Endpoints and Rules, and Listening Endpoints which offer flexible and robust DNS management within a virtual cloud network. Together, these components streamline DNS operations, ensuring efficient and scalable name resolution within OCI environments, especially for a hybrid DNS scenario that includes integrated multicloud and on-premises environments.

In the next and last tutorial of this series, Add Security to the DNS Architecture using pfSense Firewall, we will enhance the security of our DNS infrastructure by configuring the pfSense Firewall to inspect and control all DNS queries, this will include monitoring and filtering requests for both internal OCI domains (oraclevcn.com and oraclecloud.com) and custom domains managed in BIND9 such as orastage.com.

Acknowledgments

More Learning Resources

Explore other labs on docs.oracle.com/learn or access more free learning content on the Oracle Learning YouTube channel. Additionally, visit education.oracle.com/learning-explorer to become an Oracle Learning Explorer.

For product documentation, visit Oracle Help Center.