Assign domain to your Oracle Cloud Infrastructure services
11. 4. 2025
In the cloud native development before going live with solution you have requirement to serve under specific domain. There are different possibilities and solutions. During development everybody is ok with the public IP address of your load balancer, compute instance or container.
Later on you can choose different options, we will describe the best from all perspectives.
1. Order you domain, in our example devopsbot.sk /domain in Slovakia/ we are preparing AI bots.
2. Now comes the real meat. You can configure domain redirection 301 or 302 in your domain registrator. The nameserver is the one of your domain registrator. This works ok until some with highest security protection browser e.g. SAFARI comes with statement the url is not working for me. He gets warning that it tries to redirect from domain to IP address and it can be unsafe and user needs to accept it. Real nigtmare. If your pure cloud development is in Oracle Cloud Infrastructure /OCI/ do followings steps.
3. Go to Networking->DNS management->Zones and click <<Create zone>> with Zone name <<your domain>>. We strongly recommend click Advanced options and enable DNSSEC option, by default is inactivated.
4. Create A Record pointing for your domain to IP Address of the OCI service , e.g. Load Balancer or Compute or container. In this screen you also see the NS record, what stands for nameserver. Copy the 4 records and configure them to you domain registrator as a new nameserver for your domain, which is now placed in OCI. Configure also other needed records such as TXT,CNAME, SPF etc..
5. Propagate the changes by pressing Publish changes and confirm as in the screenshot
6. The provisioning takes at least 10 Minutes, but it can take as long as 72 hours to propagate the change world wide. It depends on previous TTL settings. But my experience is after 10 minutes it is working. You can monitor and check it with https://dnschecker.org/
Now test it and enjoy. You have this way everything around your solution in one OCI tenancy and you avoid redirections and possible risks.
For more information about cloud native development contact us.
Back to Blog