Skip to content

Address map is a data structure enabling customers with BYOIP prefixes or account-level static IPs to specify which IP addresses should be mapped to DNS records when they are proxied through Cloudflare.

By default, Cloudflare responds to DNS queries for proxied hostnames with Cloudflare-owned anycast IP addresses. Address maps allow you to override this behavior — when a zone or account is associated with an address map, Cloudflare responds with the IP addresses you specify instead.

To use address maps, you must first have BYOIP prefixes or static IPs configured on your account. You can customize the IPs Cloudflare uses through either approach. If you are interested in address maps but do not yet have BYOIP or static IPs, contact your account manager.


How Address Maps works

For zones using Cloudflare's authoritative DNS, Cloudflare typically responds to DNS queries for proxied hostnames with anycast IPs. However, if you customize the IPs Cloudflare uses and use Address Maps, Cloudflare will respond with the IP address(es) on the address map.

Address maps do not change how Cloudflare reaches the configured origin. The IP addresses defined on your zone's DNS Records continue to instruct Cloudflare how to reach the origin.

Static IPs or BYOIP

Leased static IPs allow you to use a set of specifically assigned Cloudflare IPs to ensure they do not change. Cloudflare creates an address map with your static IPs that you may edit. You cannot create another map using your static IPs.

With BYOIP, you use your IPs by bringing an address space that you lease or own and creating an address map.


Immutable address maps

Some customers may only proxy zones through BYOIP addresses, and are prohibited from using Cloudflare IP addresses for proxied DNS names. In this case, Cloudflare will create an immutable, account-wide address map to ensure all zones in your account receive BYOIP addresses as a fallback. These address maps cannot be deleted.

It is still possible to create more specific zone-level address maps with specific BYOIPs, but DNS will fall back to the account-wide address map without one.

To specify different addresses for certain zones, create a new address map.


Spectrum compatibility

You can use address maps to set up non-SNI support for Spectrum HTTPS applications.

However, to control what IP address Cloudflare will use when responding to requests for your Spectrum applications, you should first refer to their respective configuration and set the edge_ips field as static, e.g.:

"edge_ips": {
"type": "static",
"ips": ["1.2.3.4"]
}

For details, refer to the Spectrum API.