Default Lambda VPC - DNS Resolving fails for dynamodb.us-east-1.amazonaws.com

0

Hey,

In the last 24 hours we see some of our lambda's that interact with DynamoDB fail due to DNS resolving error:

{"errno":-3008,"code":"ENOTFOUND","syscall":"getaddrinfo","hostname":"dynamodb.us-east-1.amazonaws.com","$metadata":{"attempts":1,"totalRetryDelay":0}}

Did somebody encounter this issue or have any leads? it doesn't seem to be a DNS throttling as the invocation count of this lambda during the time when the error occurred was very low.

2 Answers
0

It's not clear from the question but: Is the Lambda running in the context of a VPC? If so, are you using the VPC Route 53 DNS resolver?

If the answer to the second question is "yes" I'd suggest creating a support ticket because there is some other issue there that isn't obvious.

If you're using your own DNS resolver within the VPC then I would check the logs on that and see if it is experiencing any issues.

If the answer to the first question is "no" then I'd also suggest creating a support ticket.

profile pictureAWS
EXPERT
answered a year ago
  • Hey, thanks for your response! The lambda is running under the default VPC (the one that is created with each AWS Account) that allows internet access etc, no custom DNS resolver is running under this VPC.

  • The default VPC generally has public subnets only; if you launch a Lambda function into a public subnet it does not get a public/elastic IP. In order to allow the Lambda function to communicate with public resources you will need to create private subnets, a NAT Gateway and use those private subnets for Lambda.

0

Hi there! My hunch is your facing some sort of DNS quota issue since its intermittent. Have you looked at this troubleshooting guide? https://aws.amazon.com/premiumsupport/knowledge-center/vpc-find-cause-of-failed-dns-queries/

profile pictureAWS
answered a year ago
  • That what I found online as well but it doesn’t make sense as those failing dns queries are not during peak lambda executions. So weird…

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions