- Newest
- Most votes
- Most comments
Based on your description, you're experiencing a DNS resolution issue with your Lambda Function URL in the us-east-1 region. This is unusual since Lambda function URLs should be immediately available after creation with a unique URL endpoint that never changes.
When a function URL is created, Lambda automatically generates a unique URL endpoint with the format https://<url-id>.lambda-url.<region>.on.aws. These endpoints are dual stack-enabled, supporting both IPv4 and IPv6.
Since your function is working correctly when tested from the AWS Console but the public endpoint is unreachable with a DNS_PROBE_FINISHED_NXDOMAIN error, here are some potential causes and solutions:
-
Verify the URL format: Double-check that you're using the exact URL provided by AWS without any typos or modifications.
-
Local DNS issues: The problem might be related to your local DNS resolver. Try accessing the URL from a different network or using a different DNS server.
-
Clear DNS cache: Clear your browser's cache and your operating system's DNS cache to ensure you're not using stale DNS information.
-
Create a new function URL: If the issue persists, you might consider deleting and recreating the function URL. While you mentioned wanting to avoid this, it's often the most straightforward solution.
-
Check for regional issues: While rare, there could be temporary regional issues affecting Lambda function URLs in us-east-1.
To invoke a function URL, you need both lambda:InvokeFunctionUrl and lambda:InvokeFunction permissions, but as you correctly noted, the request is failing at the DNS level before reaching any permission checks.
If the issue persists after trying these steps, contacting AWS Support would be advisable as they can investigate potential regional or account-specific issues that might be affecting your function URL's DNS registration.
Sources
Invoking Lambda function URLs - AWS Lambda
Understanding Lambda function invocation methods - AWS Lambda
lambda function url invoke error with DNS_PROBE_FINISHED_NXDOMAIN | AWS re:Post
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 5 years ago

It was a local DNS issue. I mitigated it by changing my DNS settings and clearing the DNS cache.