Hybrid DNS: phân giải tên miền giữa VPC và văn phòng
Mạng trong VPC và mạng văn phòng mỗi bên có hệ thống DNS riêng; để hai bên gọi được tên miền nội bộ của nhau, các truy vấn DNS cần được chuyển tiếp qua lại.
EC2 instance trong VPC cần phân giải tên miền của database on-premises (db.corp.local), trong khi hệ thống tại văn phòng cần gọi API nội bộ trong VPC (api.mftech.internal, thuộc private hosted zone). Route 53 Resolver cung cấp hai loại endpoint tương ứng với hai chiều phân giải này.
- VPC phân giải tên miền on-premises: outbound endpoint kết hợp forwarding rule.
- On-premises phân giải tên miền trong VPC: inbound endpoint.
- Private hosted zone yêu cầu VPC bật cả enableDnsHostnames và enableDnsSupport.
Hybrid DNS: resolving names between the VPC and the office
The VPC and the office network each have their own DNS; for each side to resolve the other’s internal names, DNS queries must be forwarded between them.
EC2 instances in the VPC need to resolve the domain name of the on-premises database (db.corp.local), while systems at the office need to call an internal API in the VPC (api.mftech.internal, in a private hosted zone). Route 53 Resolver provides two endpoint types for these two directions of resolution.
- The VPC resolves on-premises domain names: outbound endpoint combined with a forwarding rule.
- On premises resolves domain names in the VPC: inbound endpoint.
- A private hosted zone requires the VPC to enable both enableDnsHostnames and enableDnsSupport.