Node in EKS doesn't resolve DNS names of RDS (IP working) Node in EKS doesn't resolve DNS names of RDS (IP working) kubernetes kubernetes

Node in EKS doesn't resolve DNS names of RDS (IP working)


Okay so we found the answer!It was SO LONG to find it, so i'm gonna save you that trouble if you happen to have the same problem/configuration than us.

  1. You need port 53 outbound in NaCL and SG. That's the way kubernetes checks DNS. (DNS problem on AWS EKS when running in private subnets)
  2. In the connection string, Data source, we previously had "Data Source=DNSName;etc". We changed it to "Data source=tcp:DNSName".

That was it

2 days for that.:D

EDIT: I might add I faced the same problem in another environment/aws account (53 was the answer but slightly differently): Pods in EKS: can't resolve DNS (but can ping IP)