DNS
DNS is used to resolve host name to IP address and
IP address to host name.
Topics to be covered—Route53
1) DNS Introduction
2) Registering new domain in freenom.com
3) Host Domain name in AWS Route53
4) Map domain name with Instance IP
5) Map domain name with load balancer link
6) Map domain name with S3 bucket link
7) Routing Introduction
8) Configure Routing Policies- Latency and failover
9) Configure failover with common storage EFS
DNS Records
DNS records are basically mapping files that tell the DNS server
which IP address each domain is associated with, and how to handle
requests sent to each domain.
DNS Records Summary
1) Host or A -- Resolve Name to IP
2) Pointer or PTR – Resolve IP to Name
3) CNAME – Canonical name or Alias
4) Name Server or NS
5) Start of Authority or SOA
The DNS ‘start of authority’ (SOA) record stores important information about
a domain or zone such as the email address of the administrator, when the
domain was last updated, and how long the server should wait between
refreshes.
Amazon Route 53 automatically creates a name server (NS) record that has the
same name as your hosted zone. It lists the four name servers that are the
authoritative name servers for your hosted zone.
Domain Host Sites
1. GoDaddy
2. Bluehost
3. Freenom
4. HostGator
5. InMotion Hosting
6. Hostinger
7. Tsohost
8. Wix
9. SiteGround
10. Hostwinds
11. Weebly
Lab
1) Registering new domain in freenom.com
2) Host Domain name in AWS Route53
3) Map domain name with Instance IP
4) Map domain name with load balancer link
5) Map domain name with S3 bucket link
6) Configure Routing Policies- Latency and failover
Route53 Lab –1 Register domain name
1) Register your domain name(deepak.tk) in
freenom.com
Map Freenom domain name with AWS
2) AWS console-services-Route53-DNS management-Hosted zone-create hosted
zone-
Give domain name – deepak.tk ------ create
4) Now select NS value -- copy all NS value one by one and paste into –
freenom.com –services—my domain– manage domain—management tool –
name servers – use custom nameserver –paste here one by one ---change name
servers
Route53 Lab –2 Map IP with Domain name
1) Launch one Instance and configure web service
there
2) Route53– Hosted Zone – open registered
domain name – Create Record set – fill the detail –
type – A – In IP address : Instance public IP –ok
3) Now copy domain name and paste in Browser
Route53 Lab –3 Map Load balancer with Domain name
1) Launch two Instance and configure web service there having
different web content
2) Route53– Hosted Zone – open registered domain name – Create
Record set name: www–----Type – CNAME --. And paste load
balancer link in value box ---create
3) Now copy domain name and paste in Browser
Route53 Lab –4 Map S3 bucket link with Domain name
1) Create a bucket in S3 named : www.aayushi.tk
2) Upload index.html file here-make public
3) Open bucket –properties-static website hosting-
--Enable –type index.html –save
4)Open google and find s3 bucket policy code
5) Paste the code in S3 bucket-policy
6) Open Route 53 –
Open hosted zone –create record set –select
alias—select target s3 : aayushi.tk --create
ALB with Route53 Domain hosting( Use case 1)
Instance disaster recovery (Use case 2)
Load Balancer from different region (Use case 3)