A hybrid DNS is an overlay deployment of DNS forwarders that are configured to “route” DNS resolution requests between different private DNS namespaces (such as the internal OCI VCN DNS and what is commonly used in many private data centers).
The OCI Terraform Provider is now available for automatic download through the Terraform Provider Registry. For more information on how to get started view the documentation and setup guide.
Now, you'll want a local copy of this repo. You can make that with the commands:
git clone https://github.com/oracle-quickstart/oci-hybrid-dns
cd oci-hybrid-dns
ls
1- You need to do some pre-deploy setup. That's all detailed here.
2- Modify terraform.tfvars
file and populate with the following information:
tenancy_ocid = "<tenancy_ocid>"
user_ocid = "<user_ocid>"
fingerprint = "<finger_print>"
private_key_path = "<pem_private_key_path>"
ssh_public_key = "<public_ssh_key_path>"
region = "<oci_region>"
compartment_ocid = "<compartment_ocid>"
3- DNSScrpt.sh file deploys dnsmasq on the DNS forwarding hosts and can be left as is
4- variable.tf
, vcn.tf
, and dns.tf
files has some default values set which can be modified per the deployment requirement
terraform init
terraform plan
terraform apply
When you no longer need the deployment, you can run this command to destroy it:
terraform destroy