Internal DNS resolves to wrong IP address

0

Since this morning my EC2 machines in Ohio are unable to connect to the secrets manager: the default us-east-2.compute.internal DNS resolves to a private IP but the connection cannot be established, while it succeeds if I try from my local machine using the public IP address.

$ wget -O- "https://secretsmanager.us-east-2.amazonaws.com/"                    
--2024-03-19 13:06:18--  https://secretsmanager.us-east-2.amazonaws.com/
Resolving secretsmanager.us-east-2.amazonaws.com (secretsmanager.us-east-2.amazonaws.com)... 10.11.10.200, 10.11.1.144, 10.11.13.68
Connecting to secretsmanager.us-east-2.amazonaws.com (secretsmanager.us-east-2.amazonaws.com)|10.11.10.200|:443... ^C

I think some configuration was changed during the night and the DNS is still pointing to the old IP addresses but I have no idea how to refresh them.

Does anyone have a suggestion or experienced a similar problem in the past?

1 réponse
1

If the SSM service is resolved to Private IP, you have a VPC endpoint for the SSM. You need to check a security group attached to the VPC endpoint.

Check this article as well. It explains the whole configuration way https://repost.aws/knowledge-center/ec2-systems-manager-vpc-endpoints

profile picture
EXPERT
répondu il y a 2 mois
profile picture
EXPERT
Artem
vérifié il y a un mois
profile picture
EXPERT
Kallu
vérifié il y a 2 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions