You can manage your public DNS for your domain on OCI.
But first, you have to change the DNS delegation to OCI’s name servers like the following.
Whatever domain registerer you use, I am pretty sure you can change name servers for your domain. Once you change the domain delegation, you can start to manage your DNS records within OCI console.
Once you navigate to DNS Management on OCI console, click Create Zone.
I have iriumi.study as a domain that I want to be hosted on OCI, so I am going to create it.
Once you create the zone, you can add records.
Select A record for the record type and enter the public IP address you want to assign. I am leaving subdomain as blank because I want the name to resolve to the IP address without any subdomain. Also enter the value of TTL. TTL stands for time to live and it’s a duration how long the DNS resolution is cached before reaches back out to collect new and updated details. I am setting it 60 seconds for now but longer or shorter TTL has their own purposes, so I’d recommend that you look it up.
Now you can click Submit button at the bottom of the screen.
Then, click Publish Changes button to get it published.
If you go to DNS Checker and see how it is propagating around the world, you get to see something like this.
When you upload relatively a big file to Object Storage in OCI, it doesn’t have the MD5 hash ready for you. It’s because the big file is split into multi parts and they are uploaded into separate space. Then, when you download the file, the multi parts are downloaded sequentially and they are put into one file on the client side. Object Storage does not calculate the MD5 hash putting the multi parts together on the service side due to its sheer required processing power it may need. When you try to view the information of the file on Object Storage, you don’t see the actual MD5 hash.
Tough opc-multipart-md5 looks promising, that’s just a part of the whole thing. To get my point crossed, when I uploaded a small file, MD5 hash is calculated and available on the service side.
Now, how do we solve this problem? The best way is to calculate the MD5 hash before you upload the file with md5sum and then attach the MD5 hash to metadata when uploading the file to Object Storage.
You can get the data by executing the following command.
oci os object head --auth instance_principal -bn backup --name 2022-03-20.zip
So the process would be to execute oci os object head on the object you are going to download and keep the MD5 hash in a variable. Then once you download the file, have md5sum calculate the MD5 hash on the downloaded file. And then see if the calculated MD5 matches the one from oci os object head.
Here is the bash script I came up with to upload the file with the metadata.