AWS Builder Center
Advanced AWS Networking: Troubleshooting ALB, VPC Peering, and DNS Issues

Advanced AWS Networking: Troubleshooting ALB, VPC Peering, and DNS Issues

A deep dive into a hands-on troubleshooting lab where I resolved complex routing, target health, and DNS connectivity issues across multiple VPCs and an Application Load Balancer.

Aspiring AWS Cloud Engineer | AWS Core & Networking | Automation | Terraform (IaC) | Docker | CI/CD
In the real world, deploying infrastructure is only half the battle. The real challenge begins when things break, and you have to figure out why. Recently, I completed an advanced AWS networking troubleshooting lab that put my routing and DNS skills to the test.
Here is a breakdown of the issues I faced, how I resolved them, and the key takeaways.

The Scenario: Cross-VPC ALB Architecture

The setup involved an Application Load Balancer (ALB) in one VPC and backend EC2 instances in a completely separate VPC, connected via VPC Peering. The goal was simple: make the ALB route traffic to the targets and resolve correctly.
But, as expected, things were broken.

1. The Target Health Mystery

When I first checked the ALB Target Group, the EC2 instances were showing as Unhealthy.
The Fix: This is a classic cross-VPC issue. I had to verify two things:
  • Routing: Did the ALB's subnet route table have a route pointing to the VPC Peering connection for the target VPC's CIDR block? And vice versa?
  • Security Groups: The backend EC2 instances' Security Groups needed to allow traffic on the application port specifically from the ALB's Security Group (or the ALB's subnet CIDR), not just the whole internet.
Once the routes were corrected and the Security Groups updated, the targets turned Healthy.

2. ALB DNS Connectivity Timeouts

Even after the targets were healthy, hitting the ALB's DNS endpoint resulted in intermittent timeouts.
The Fix: I used  curl  to test the endpoint repeatedly. The issue wasn't the ALB itself, but rather a routing gap. Traffic was getting to the ALB, but the return path to the client was failing. I verified the route tables again and ensured the Internet Gateway (IGW) was properly associated with the public subnets.

3. The Optional Challenge: Custom DNS with Route 53

The lab had a bonus challenge: Instead of using the long, auto-generated ALB DNS name, configure a friendly name (like  app.mycompany.internal ).
The Fix: I created a Private Hosted Zone in Amazon Route 53 and attached it to the VPC. Then, I created a simple CNAME record (or an Alias record) pointing to the ALB's DNS name. This made the architecture much more readable and professional.

The Biggest Takeaway

This lab taught me a crucial lesson: In AWS, everything is connected.
A simple mistake in a VPC route table doesn't just break that VPC; it affects the ALB's health checks, which in turn takes down your application. Troubleshooting isn't about guessing—it's about systematically checking the OSI layers:
  1. Are the routes correct? (Layer 3)
  1. Are the Security Groups allowing traffic? (Layer 4)
  1. Is the DNS resolving? (Layer 7)
If you are studying for your AWS Solutions Architect or just working with multi-VPC setups, I highly recommend breaking your own infrastructure and fixing it. That’s where the real learning happens!
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article