Skip to content

ALB intermittently resolving to dead IP — causing connection timeouts

1

Hello,

I'm currently experiencing intermittent connection timeouts on our production application that is behind an Application Load Balancer (ALB) in the ap-northeast-2 region (Seoul). After some investigation, we believe this may be related to one of the IPs returned by the ALB’s DNS.

When we resolve the DNS name for the ALB:

dualstack.olock-alb-123456789.ap-northeast-2.elb.amazonaws.com

It returns the following IPs:

  • 13.125.106.***
  • 13.124.72.***
  • 43.200.216.*** ← this one consistently fails

Whenever a client gets 43.200.216.*** via DNS and attempts to connect to it (over HTTPS), the connection times out. We've verified this with multiple curl requests from different clients and networks.

Example:

curl -v https://our-domain.com

The issue only occurs when the resolved IP is 43.200.216.***. The others work fine.

This IP is not associated with any of our EC2 instances directly. It appears to be an AWS-owned endpoint as part of the ALB infrastructure. We suspect this may be a stale or faulty ENI behind the ALB that hasn’t been properly removed or is in an unhealthy state.

Interestingly, when we test the DNS record via Route 53’s “Test Record” tool, it still evaluates the record as healthy and returns all three IPs — including the failing one. So from Route 53’s perspective, nothing appears to be wrong, which makes this harder to detect unless you’re watching the traffic at runtime.

This is currently causing ~2% of our user requests to fail with long delays (due to TCP timeouts), which is becoming a serious problem.

Has anyone experienced a similar issue where the ALB resolves to a non-functional IP?
Is there anything we can do on our side to work around this, or should this be escalated to AWS?

Any advice would be appreciated.

Thanks!

3 Answers
0

I have ran DNS test (dig test) on your ELB and it gives NXDOMAIN which is indication that load balancer is deleted. Have you deleted a load balancer or are you still seeing issue connecting via single IP address?

AWS
EXPERT

answered a year ago

  • I think the "123456789" in the name was meant for illustration. It isn't the ALB's real DNS name.

0

This issue appears to be related to the Network Load Balancer (NLB) or Application Load Balancer (ALB) DNS resolution behavior where one of the IP addresses is not responding correctly.

Based on your description, this could be happening due to a few possible causes:

  1. Missing healthy targets in an Availability Zone: If you don't have at least one healthy target in each Availability Zone that your load balancer is configured for, the IP address for that zone might still appear in DNS resolution but won't properly handle traffic. The load balancer DNS can "fail open" and return IP addresses for all zones even if some don't have healthy targets.

  2. Cached DNS resolution: After changes to your load balancer configuration, some clients might have cached the old IP addresses. This is particularly relevant if you've recently migrated your ALB to use different IP addresses, as the ENIs associated with previous IP addresses are deleted after connections close, but clients with cached DNS responses would still try to connect to those addresses.

  3. Listener configuration issue: In some cases, deleting and recreating listeners has resolved similar problems where one of the elastic IPs stops responding without triggering health check failures.

To resolve this issue, you could try the following:

  • Ensure you have healthy targets in all Availability Zones where your load balancer is deployed
  • Enable cross-zone load balancing if you don't have targets in all zones
  • Check if the problematic IP corresponds to a specific Availability Zone and verify target health in that zone
  • As a temporary workaround, you might consider recreating the listeners on your load balancer
  • Optimize the TTL settings of your DNS records to reduce the impact of cached DNS responses

If these steps don't resolve the issue, I would recommend creating an AWS support case as this might require deeper investigation from the AWS team to determine what's happening with that specific IP address.
Sources
Routing with NLB Elastic IP problem, listener malfunctioning | AWS re:Post
Resolve Network Load Balancer IPs that don't appear | AWS re:Post
Simplify ALB’s public IP address assignment with VPC IPAM | Networking & Content Delivery

answered a year ago

0

Hi ! I recommend to troubleshoot this issue following those steps to get more insights:

Normally the Application Load Balancer has one IP address per enabled Availability Zone. These are the IP addresses of the Application Load Balancer nodes. The DNS name of the Application Load Balancer resolves to these addresses. For example, suppose that the custom domain name for your Application Load Balancer is example.applicationloadbalancer.com. Use the following dig or nslookup command to determine the IP addresses of the Application Load Balancer nodes. The fact that one specific IP (43.200.216.*) consistently fails while others work could indicate a potential issue with the ALB infrastructure in one of the AZs.

  • Verify ALB Health in AWS Console EC2>Load Balancer, check status across all AZs ( look for any AZ showing unhealthy or degraded.

  • Verify also on resource map section the targets status ensuring that you hace healthy resources on all AZs.

  • Enable ALB Access Logs to capture detailed requests information , this helps identify patterns and confirm which requests are failling.

  • Monitor Cloudwatch Metrics: Check metrics like HealthyHostCount, UnHealthyHostCount, and TargetResponseTime and Look for anomalies that correlate with the connection timeouts

answered a year ago

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.