[AWS] How to develop Redundant Web System ~Part5: Route53~

First of all

In my previous article, I’ve explained how to get free domain by Freenom service. Next, let me introduce how to associate this domain with AWS Route 53 in this article.

System Requirement
  • Web site can be accessed on the Internet with FQDN
  • Redundant server configuration for incident recovery
  • Manual switchover at the time of an incident.
  • Can develop additional servers if the web access is increased
System Configuration

System Configuration diagram is as below. Public Users access EC2 instance through ELB, Elastic Load Balancer. And static contents are provided by S3 through CloudFront.

Route53 setting
To access your web site with your domain, you need to use DNS service, Route53. Let me explain how to set Route 53 in this chapter. Firstly, access Route53 by AWS management console.

And, create new hosted zone by clicking below button.

Then, input domain name you’ve created in advance and click “Create hosted zone”.


Your hosted zone is created as below.
Then create DNS record to associate domain and ELB’s host name.


And, select Alias record and select ELB created in the previous chapter.

You can see A record as below.

However, DNS server is not designated to your domain and you cannot access ELB by domain name. To resolve it, you need to set NS record to Freenom setting.
In the freenom website, click “My Domains” in Services tab.

In your domain record, click “Manage Domain”.

Then, click “NameServers” in the Management Tools tab.

Then, set custom nameserver designated by AWS Route53.

This record for nameservers are set in the Route53. Please check your NS record by hosted zone setting below.


OK, nameserver setting in Freenom is changed successfully.

I’ve checked IP address has been resolved by nslookup command as below.
IP address of ELB is returned successfully.

Finally, access your website by your domain name. I hope you could access it as below.

Finally

This is the end of part3. I hope you could use your domain name.
In my next article, let me explain how to set SSL certificate in your website for security countermeasure. Please check it.

If you think this article is beneficial for me, I would be glad if you click below icon for my motivation.
ブログランキング・にほんブログ村へ

コメント