How to bind Custom Domain via A Record

 
The majority of applications in production use an External IP address as more secure and effective entry point. So, to attach a custom domain for such environments, a special A Record is required.

A Record is an entry in the DNS zone file, that maps each domain name to the IP address. For example, when you type www.mycustomsite.com, browser goes to the nameserver and asks for the mycustomsite.com A Record. This record should point to the appropriate IP address of your web or balancing server.

Tip: Using A Record pre supposes you already have an environment with Public IP address attached to its entry point. If not, add it to continue or consider another way of domain name binding - by means of CNAME redirect.

1. Log into your domain registrar account. Expand Sign In option and click the same-named button.

2. Fill in your signing account credentials, to authenticate and switch to your account manager by clicking the Visit My Account button.

3. Expand your DOMAINS list, find the required one, and click on Manage DNS for it.

Tip: In case you don’t have any domain yet, follow the Get One Now link to purchase it.

4. At the bottom of the Records section, click the Add button.

5. Within the shown Add Zone Record frame, select the option from the Type drop-down list. 

6. Complete the A Record addition.

Here:
  • Host - enter hostname the A Record is linked to point record directly to my domain name
  • Points to - specify external IP address of my environment entry point

    Tip: To get this IP, expand my application server (load balancer) layer and use Additionally button to see my node Public IP address (the second one).


     

  • TTL - select for how long the DNS server should keep my A Record information cached (i.e. the delay before new settings for it will be applied in case of their further change)

Click Save.

Note: Any DNS changes you make can take up to 48 hours to be reflected throughout the Internet.

7. That's all! Now, open a new browser tab and enter my custom domain name into the address bar.

             

     you will see the home page of your application, which means that everything is set up properly.


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 16981