AWS SAA系列
AWS Route53
雲上的DNS
Nov 8, 2021
Route53
Route53是AWS提供的DNS服務,提供網域註冊、DNS路由、跟health check。
Routing Policies
- Simple Routing Policies:隨機對應IP。
- Multi-value Answer Routing Policies:跟Simple Routing Policies,對應多個IP,差別在於會針對該目標health check。
- Weighted Routing Policies: 自行決定根據加權比例。
- Latency Based Routing Policies:根據最低延遲。
- Failover Routing Polies:設定Primary & Secondary,當主要的health check沒過就會導流到Secondary。
- Geolocation Routing Polies:根據request的地理位置(based on the location of your users)。
- Geoproximity Routing Polies:根據資源服務位置,並且可以手動調整區域的bias數值,來增加或減少區域的流量(based on the location of your resources),官方敘述:用於根據資源位置路由流量,以及 (選用) 將流量從某個位置中的資源,轉移到另一個位置中的資源。
Geolocation vs Geoproximity可以參考此影片
Health checks
預設30秒檢查一次,可手動調整,並可以新增CloudWatch警示,每一次的health check都需要額外收費。
DNS Record Types
- A Record & AAAA ( URL to IPv4/IPv6):url對應到IP。
- CNAME:url對應到另一個url。
- MX:指定電子郵件伺服器名稱。
- alias:AWS專屬,可以將URL指定到AWS Resource。
Alias records & CNAME records
Alias 將DNS別名導向至選取的AWS資源,像是S3、CloudFront,是AWS特有的Alias可以偵測IP變動自動調整。CNAME可以將DNS導向任何的DNS紀錄(額外收費)。可參考這篇說明。