Multiple Cloudflare accounts DNS IP address change

What is the name of the domain?

Multiple

What is the error number?

None

What is the error message?

None

What is the issue you’re encountering

Changing old server IP to new server IP on multiple Cloudflare accounts

What steps have you taken to resolve the issue?

I am in the process of upgrading my hosting server which will come with a new IP address and nameservers. However, the big issue is that each client website has it’s own Cloudflare account. Is there a way to change any Cloudflare account with a specific IP address and change it to a new IP address?

What feature, service or problem is this related to?

DNS records

What are the steps to reproduce the issue?

Nothing to reproduce

You could create a script that uses the Cloudflare API to loop through a list of accounts, for each account get every zone, for each zone get all the DNS records and update any that use the IP address you want to change.

For each account you’d need to have the global API key or configure an appropriate API token so whether this is worth doing depends on the how many accounts are involved.

2 Likes

There are about 60 accounts so I’ll just do them one by one. Sigh

You might want to consider using CNAMEs instead of A records.

That way, you’d only need to change the IP once in the future.

Since each domain is in its own account, such CNAMEs would unfortunately result in Error 1014: CNAME Cross-User Banned.

1 Like

I can’t test right now, but wouldn’t it work if the target record is not proxied but DNS-Only?

1 Like

Yes, that would work for anyone who is only using Cloudflare for DNS. I guess I just default to :orange:, like the dashboard. :rofl:

1 Like

What i meant is a proxied CNAME record to a DNS-Only A record in a different account. Would that not work? I thought cross account CNAMEs were only blocked to proxied targets, but I don’t have a second account to test it.

1 Like

That’s a novel approach that I had never considered. I don’t know the answer, but now I want to. :grin:

1 Like

I just gave it a try with some random unproxied IP and got an SSL Handshake error, not a 1014. So I guess that means it would work.

If you want a definitive answer, you could create a CNAME to laudian.de and tell me the hostname. I could then put a short Hello World! up on port 80.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.