How to map a domain name to a static IP address?
Your A records need to be mapped to a static IP address in your DNS. There are two ways find your load balancer's static IP address:
Option 1: Using AWS Console
- Open the Amazon Elastic Compute Cloud (Amazon EC2) console.
- Navigate to the relevant region.
- Under Load Balancing, choose Load Balancers from the navigation pane.
- Select the load balancer that you're finding the IP addresses for.
- On the Description tab, copy the Name.
- Under Network & Security, choose Network Interfaces from the navigation pane.
- Paste the load balancer name that you copied in step 5 in the search box. The filtered results show all elastic network interfaces associated with the load balancer.
- For each of the elastic network interfaces in the filtered results, copy the Public IPv4 address value.
- This is the list of addresses to which your inbound connections will map.
Alternatively, you can watch this video to see the above steps in action.
Option 2: Using command line
nslookup your load balancer's name.
The 3 addresses in the output are the IPs that you're looking for.