ENOTFOUND error only in one subnet

0

I'm getting a ENOTFOUND error when running a node.js process that calls an external API. The process is running in a Fargate service within a VPC with 2 public subnets, one for each AZ. The process runs fine in 1 subnet, but fails in the other one. Both subnets use the same IGW.

Public subnet 1: 10.0.0.0/17 Public subnet 2: 10.0.128.0/17

The Fargate service has public IP enabled and uses both subnets.

  • Hi - Are you using the Amazon provided DNS in each of your subnets? This would be the .2 offset in each CIDR. Have you noted any differences with name resolution between subnets?

Keine Antworten

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