TheKoguryo's Tech Blog

Version 2023.06.19

Warning

This content has been generated by machine translation. The translations are automated and have not undergone human review or validation.

11.1 Mapping with Domain Name

This is the process of setting up a domain name that has already been purchased. For testing freenom I used the free Domain Name (thekoguryo.ml) issued by the site.

In the previous process, I used Load Balancer to link with the Apache web server. We will map the domain name we have with the IP of the Load Balancer.

OCI DNS service settings

  1. Open the navigation menu in the OCI console. Go to Networking > DNS Management > Zones.

  2. Click Create Zone

    image-20220116211205307

  3. Enter creation information

    • METHOD: Manual

    • ZONE NAME: Enter your domain name

    • ZONE TYPE: Primary

      image-20220116214121321

  4. Click Create

  5. Go to Resources » Records and you can see what was created. Records of NS type and SOA type are created inside Zone. NS is name server record, SOA is permission start record.

    image-20220116214243481

  6. First, add a record so that the web server is connected to a specific address (www.thekoguryo.ml) instead of the IP of the Load Balancer.

    • Record Type: A - IPv4 Address

    • NAME: www

    • TTL: 300, click the lock on the right to unlock and enter the TTL value

    • RDATA MODE: Basic

    • ADDRESS: IP to be mapped, here, input the IP of the Load Balancer created earlier

      image-20220116214441173

  7. Click Submit

  8. Click Publish Change to reflect the changes

  9. When the confirmation window appears, click Publish Change once more

    image-20220116214529303

  10. Complete

    image-20220116214614389

  11. Copy all name server addresses that are of type NS in the record.

Set on the domain name provider side

Now you need to set up the domain name on the site where you purchased it. The process below is for setting the freenom standard. Set up in a similar way on the site where you purchased it.

  1. Access the freenom site and go to Services > My Domains.

  2. Click [Manage Domain] to the right of the domain name to be used in My Domain

    image-20220116213412432

  3. Select Management Tools > Nameservers and then select Use custom nameservers (enter below).

  4. After entering the name server addresses that you copied earlier in OCI DNS Zone, click Change Nameservers

    image-20220116213641105

Test

  1. Try accessing the domain name through a browser.

  2. As shown in the figure, you can check that the connection is made through the domain name.

    Picture



As an individual, this article was written with my personal time. There may be errors in the content of the article, and the opinions in the article are personal opinions.

Last updated on 16 Jan 2022