How Private subnet communicates with external dns in firewall applied environment?

0

I run EC2 Instance in Private Subnet. The Instance should communicate with external dns(not AWS Resources). In Private Subnet, the instance doesn't communicate with the dns because of firewall. How can I get dns ip address? Should I set NAT Gateway and run Squid(Proxy) in Public Subnet? What is different best way to communicate with external dns?

1 Antwort
1

You can set up an AWS-managed NAT Gateway and route internet-bound traffic from your Private Subnet to it. Then set up a Route 53 Resolver Outbound Endpoint to forward DNS queries (optionally conditionally) to your external DNS server.

https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver.html

EXPERTE
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen