Access to specific DNS from EC2

0

We have a VPC with Internet access. Within the VPC we have an EC2 which does not allow internet access using the Security Group. We wish to allow specific DNS to be reachable from this EC2 (Egress). What are the possible options?

Essentially, looking for DNS filtering at the EC2 egress and not at the VPC.

The reason for specific DNS is that the IP associated with the DNS can change and we prefer not having a logic to dynamically update the security group.

1 Respuesta
2

Have you thought about using Route53 Resolver DNS Firewall to do this?

https://docs.aws.amazon.com/vpc/latest/userguide/resolver-dns-firewall.html

Either way, you still have to allow the EC2 talk to a DNS Server and that in turn will allow recursive DNS queries.

profile picture
EXPERTO
respondido hace 2 meses
profile picture
EXPERTO
revisado hace 2 meses
profile picture
EXPERTO
revisado hace 2 meses
  • Thanks, I will go through it. After reading the first paragraph, it appears to be at the VPC level. But will go through it in detail.

    "It can also block requests for public or private Amazon EC2 instance names." -> This seems promising, will have a more detail reading sometime later today.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas