AWS
DevOps
  • knowledge
    • glossary
    • network knowledge
      • CIDR Block
      • OSI
      • List of Ports
      • Network model
    • AWS best practices
      • Least privilege principle
      • Support Plan
      • Well-architected framework
        • Well-architected framework
        • Cost optimization
        • Operational Excellence
        • Performance efficiency
        • Reliability
        • Security
    • Exams
      • DOP-C02
        • DOP-C02 topics
        • DOP-C02 Labs
      • DVA-C02
      • SOA-C02
  • services
    • access management
      • Directory Service
      • IAM
        • PassRole
      • IAM Identity Center (SSO)
      • Organizations
        • Organizational Unit
        • Control Tower
      • AD Domain Service
    • analytics
      • data analytic
        • Athena
        • QuickSight
        • Redshift
      • data collection
        • Data Lake
        • Lake Formation
      • data processing
        • EMR
        • Kinesis
        • Glue
          • Glue Data Catalog
      • OpenSearch
    • compute
      • Batch
      • EC2
        • Auto Scaling
        • AMI
        • ELB
          • Global accelerator
        • Security Group
        • EBS
        • EC2 Instance Store
        • Spot Fleet
      • Elastic Beanstalk
      • Lambda
        • Layer
        • Lambda API
      • Outposts
      • Wavelength
      • SAM
      • VMWare Cloud
    • container
      • Copilot
      • ECR
      • ECS
        • ECS Anywhere
      • EKS
        • EKS Anywhere
        • EKS Distro
      • Fargate
    • cost management
      • Budgets
      • Cost Explorer
      • Saving Plans
      • Compute Optimizer
    • database
      • Data Engineer
      • Document DB
      • DynamoDB
        • DynamoDB API
        • Scan
      • ElastiCache
      • Keyspaces
      • MemoryDB for Redis
      • Neptune
      • Quantum Ledger Database
      • RDS
        • Aurora
          • Aurora Global Database
          • Aurora Serverless
      • Timestream
    • devTools
      • CICD
        • CodeArtifact
        • CodeCommit
        • CodeBuild
        • CodeDeploy
        • CodePipeline
      • CloudFormation
      • CodeGuru
      • CodeStar
      • CodeWhisperer
      • X-Ray
      • Deployment strategies
    • finance
      • Cost explorer
    • integration
      • AppFlow
      • AppSync
      • EventBridge
      • MQ
      • SNS
      • SQS
      • Step Functions
      • SWF
    • management
      • AppConfig
      • AWS Backup
      • AWS CDK
      • Config
      • Grafana
      • Health Dashboard
      • Proton
      • Service Catalog
      • System Manager
      • SSM
      • Resource Group
      • OpsWorks (discontinued)
    • media
      • Elemental MediaConvert
      • Transcoder
    • messaging
      • SES
    • migration
      • Application Migration Service
      • DataSync
      • DMS
      • Migration Evaluator
      • Migration Hub
      • Server Migration Service
      • Snow Family
      • Transfer Family
    • ML
      • Comprehend
      • Forecast
      • Kendra
      • Lex
      • Rekognition
      • SageMaker
        • SageMaker Data Wrangler
        • SageMaker ML Lineage Tracking
    • monitoring
      • CloudTrail
      • CloudWatch
      • TrustedAdvisor
    • networking
      • CloudFront
      • Customer gateway
      • Edge Location
      • hybrid networking
        • Direct Connect
          • Direct Connect Gateway
        • Site-to-site VPN
      • PrivateLink
      • Region
        • AZ
      • Route 53
      • Transit Gateway
      • VPC
        • VPC Lattice
        • Subnet
          • NACL
        • Internet Gateway
        • Network Firewall
        • VPN
        • NAT Gateway
      • Virtual Private Gateway
    • security
      • Artifact
      • ACM
      • CloudHSM
      • Cognito
      • Detective
      • Firewall Manager
      • GuardDuty
      • Inspector
      • KMS
      • Macie
      • Network Firewall
      • Resource Access Manager
      • Security Hub
      • Secret Manager
      • Secret Hub
      • Shield
      • STS
      • Trusted Advisor
      • WAF
    • storage
      • Backup
      • EBS
      • EFS
      • FSx
      • S3
        • S3 Glacier
        • S3 Snippet
        • S3 Mountpoint
      • Snow family
      • Storage gateway
      • WorkDocs
    • web & mobile
      • Amplify
      • API Gateway
      • Device Farm
      • Pinpoint
Powered by GitBook
On this page
  • Overview
  • Benefits
  • Record types
  • Features
  • Hosted Zone
  • Weighted routing policy
  • Latency Routing
  • Geolocation Routing
  • Geoproximity Routing
  • Health check
  • Trivia
  • Concepts
  1. services
  2. networking

Route 53

PreviousAZNextTransit Gateway

Last updated 1 year ago

| | | |

Overview

when user enter a domain
  • Can be used to manage both public and private domain.

  • user can access app using these domain name.

  • provice health check for resources -> route traffic away from unhealthy resouces.

  • Route53 responses to DNS queries.

Benefits

  • Performance

    • Low query latency for end-user

    • Low update latency for DNS record management

  • Scalable

    • Can handle large query volume.

  • Flexibility

    • Route policy

Record types

  • CNAME:

    • point host name to another hostname. ex: app.mydomain.com -> blabla.anything.com

    • ONLY FOR NON ROOT domain. ex: aka.sth.mydomain.com

  • Alias (A or AAAA)

    • free

    • point a host name to ONLY ONE AWS resource.

      • ex: app.mydomain.com -> blabla.amazonaws.com

    • work for both ROOT and NON-ROOT domain.

    • Always of type A or AAAA

      • A: IPv4

      • AAAA: IPv6

  • MX: mail exchange record

-
CNAME
ALIAS

Target group

point to the host

point to AWS resources

Target group value

DNS or Hostname

DNS

Response

return DNS/Hostname. Need to query Alias to know the IP

A or AAAA

$

Yes

No

TTL

Yes

No

Root domain

No

Yes

Features

Hosted Zone

  • Public: how traffic is routed in the internet.

  • Private: determine how traffic is routed within VPC

Weighted routing policy

  • Weighted: eg 5% traffic go to production environment.

    • Sum of total weighted % is not neccessary 100%

    • DNS record need to be same type, same domain or subdomain.

    • If you set weight = 0 for all records, the traffic will be balanced for all.

  • Latency: evaluate the latency between your users & AWS regions, to minimize the latency.

  • Use cases:

    • Load balancing

    • Testing new software version.

Latency Routing

  • Letting Route 53 serve user requests from the AWS Region that provides the lowest latency.

  • Use case: improve performance / reduce latency.

Geolocation Routing

Lets you choose the instances that will serve traffic based on the location of your users

For example: US -> instance-1, France -> instance-2

Geoproximity Routing

  • Lets Amazon Route 53 route traffic to your resources based on the geographic location.

  • You can also optionally choose to route more traffic or less to a given resource by specifying a value, known as a bias. A bias expands or shrinks the size of the geographic region from which traffic is routed to a resource.

Health check

  • HTTP Health check are only for PUBLIC resouces.

  • Health check -> Automated DNS Failover.

  • Route53 can monitor (the health) of the end-point

  • Support methods: HTTP, HTTPS, TCP

  • PASS only when the response code is 2xx or 3xx.

  • Health check can work with other healthchecks.

Trivia

  • Check TTL by nslookup -q=SOA google.com or dig google.com SOA

  • Each Amazon Route 53 account is limited to a maximum of 500 hosted zones and 10,000 resource record sets per hosted zone.

Concepts

  • 172.217.18.36  => www.google.com

NS: Name Server for

Weighted routing policy
Geoproximity map

If you want to check the health of PRIVATE resources, then use CloudWatch Metric. This means healthcheck just monitor the Metric, not that PRIVATE resources

Heallthcheck work with other Healthcheck

is required setting value for all record types, except A

Health check in Route53 are only for PUBLIC resources.

(Domain Name Service): map domain name to IP addresses, or resources (EC2, ELB, S3 buckets, CloudFront...). For example:

: Godday, お名前.com, Route53...

: server that converts name -> ip

: .com, .vn

: google.com, aws.com

(Time to live): the client will cache the result (return from DNS server) for TTL minutes. To save cost, set the TTL value higher for lesser requests to DNS server.

😂
😂
Name server
Top Level Domain
Second Level Domain
Hosted Zone
TTL
DNS
Domain Registra
TTL
Route-53 viblo.asia
DNS's FAQ
FAQs
Routing policy