githubEdit

How do I set up a wildcard DNS record for a Load Balancer?

Context When setting up review environments or preview applications, you may need to create a wildcard DNS record that points to your Application Load Balancer (ALB). This allows dynamic subdomain creation for features like pull request preview environments. Answer To set up a wildcard DNS record for your Load Balancer, follow these steps: First, identify the domain you want to use for your wildcard DNS. The domain must be managed within your hosted zones. Create a new hosted zone for your wildcard domain if it doesn't exist already. Add an A record with the following configuration: Name: *.[your-domain] Type: A record Alias: Yes Target: Your Application Load Balancer If you need HTTPS support: Ensure you have a wildcard SSL certificate for your domain Configure your Load Balancer listener for port 443 with the appropriate SSL certificate Remember to update your Load Balancer's listener configuration to use the correct SSL certificate for HTTPS traffic.

Last updated

Was this helpful?