AWS
ELB
dualstack
cloud computing
load balancing

What does the dualstack prefix mean in AWS ELB?

System Design practice on Codemia

Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.

Practice system design

In the context of AWS Elastic Load Balancing (ELB), the term "dualstack" is an important prefix that signifies specific characteristics related to networking, particularly concerning IP versions. This article delves into what "dualstack" means within AWS ELB and the implications for your network architecture.

Understanding Dualstack in AWS ELB

AWS Elastic Load Balancing (ELB) distributes incoming application or network traffic across multiple targets, such as Amazon EC2 instances, containers, and IP addresses, in multiple Availability Zones. The "dualstack" prefix in the DNS name of an ELB signifies that the load balancer supports both IPv4 and IPv6 protocols.

Why is Dualstack Important?

The internet is transitioning from IPv4 to IPv6 due to the exhaustion of IPv4 addresses, which limits scalability. IPv6 provides a vastly larger address space. Supporting both IPv4 and IPv6 (hence "dualstack") allows a seamless transition and maximum compatibility during this shift.

Technical Explanation

When you create an ELB in AWS, it’s assigned a DNS name, such as my-load-balancer-1234567890.us-west-2.elb.amazonaws.com . Once you enable IPv6 support, this DNS name is prefixed with "dualstack", for example, dualstack.my-load-balancer-1234567890.us-west-2.elb.amazonaws.com .

DNS Resolution and the Dualstack Prefix

When a client resolves the DNS name of a "dualstack" ELB, they receive multiple IP addresses: one or more IPv4 addresses (A records) and one or more IPv6 addresses (AAAA records). This DNS configuration allows clients supporting IPv6 to connect via IPv6, while IPv4 clients continue to connect using IPv4.

Example:

  • Compatibility: Provides continuity as clients, applications, and services transition to IPv6.
  • Mobility: Devices and applications in environments with only IPv6 support can access resources without disruption.
  • Future-proofing: Organizations can integrate IPv6 traffic management and leverage AWS’s growing global infrastructure that supports IPv6.
    • Assign an IPv6 CIDR block to your VPC.
    • Allocate IPv6 subnets as required.
    • Add IPv6 route rules.
    • Edit your existing ELB or create a new ELB with IPv6 enabled.
    • Verify the DNS name updates with the "dualstack" prefix.

Related reading
Course
Beginner
27 lessons
10 hours
System Design Fundamentals

Build a strong foundation in designing scalable, reliable distributed systems.

View the course
Track what you have practised

A free account saves your progress, solutions and study plan across every problem on Codemia.

System Design practice on Codemia

Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.

Practice system design

All Rights Reserved.