Set up address maps
Consider the sections below to learn how to set up address maps.
To avoid any errors if you have static IPs, Cloudflare creates an address map during the static IP onboarding process, meaning you cannot create a new address map with your static IPs. You may only edit the Cloudflare-created map and add or edit your zones within the existing map.
If you are using BYOIP instead, refer to the following steps:
- Log in to the Cloudflare dashboard ↗ and select your account.
- Go to IP Addresses > Address Maps.
- Select Create an address map.
- Choose the scope of the address map.
- Add the zones and IP addresses that you want to map.
- Name your address map.
- Review the information and select Save and Deploy.
- Log in to the Cloudflare dashboard ↗ and select your account.
- Go to IP Addresses > Address Maps.
- Go to your address map and select Review.
- Edit your address map.
- Review the information and select Save.
If your visitors use devices that have not been updated since 2011, they may not have Server Name Indication (SNI) support. For further context, refer to browser compatibility.
Use address maps to specify a hostname as default SNI. This will be used whenever Cloudflare receives a non-SNI TLS handshake.
- If you have not already, create an address map. Refer to the section above or to the Create Address Map API endpoint.
- Take note of the address map
id
. If needed, you can use the List Address Maps endpoint to get it. - Make sure you add the desired IPs to the address map. Cloudflare will respond with the default SNI on those IPs. Use the dashboard or refer to Add An IP To An Address Map.
- Configure the
default_sni
value on the address map created in step 1. Refer to the Update Address Map API endpoint for details. The default SNI can be any valid domain or subdomain owned by your account.