When changing my A record DNS using API it returns success but the IP doesn’t change.
What steps have you taken to resolve the issue?
I am calling the API for updating my DNS record, with a global API key or zone API key both return the same, and the result is “success”:true. The rest of the return looks good except the “content” tag is still the old IP and it does not actually update my IP. In the dashboard it is still the old IP.
Exactly as on this page, the response is also identical except I don’t have comments or tags: Cloudflare API Documentation
What feature, service or problem is this related to?
DNS records
What are the steps to reproduce the issue?
I am calling the API for updating my DNS record, with a global API key or zone API key both return the same, and the result is “success”:true. The rest of the return looks good except the “content” tag is still the old IP and it does not actually update my IP. In the dashboard it is still the old IP.
Exactly as on this page, the response is also identical except I don’t have comments or tags: Cloudflare API Documentation
In this instance $zone_identifier is Zone ID from my dashboard, $record_identifier is worked out using my zone id and record name and is returning correctly or it would be exiting, $auth_email is my cloudflare email, I have tried both a zone token with Zone.DNS permission and my Global API key for $auth_key. Both return success true. $record_name is jayinchina.net, $ttl = 3600 (it is 1 in my control panel but also does not change) and $proxy is false.
I do not understand why this seems to be working, all the ducks line up. Thanks.
That’s interesting, where are you seeing that. When I look at my dashboard it shows a record for *, jayinchina.net and www. My other domain I have never used a script to update points where I expect it to.
Anywho, thanks for your help, it turns out I am a goober, I took a fork of the script I linked which tried to allow for multiple records which clearly doesn’t work, when I took the original script and amended it myself to work for multiple records it works fine!
For anyone in future driving by here, the name has to be fully qualified, so www.jayinchina.net gets me the www record and *.jayinchina.net gets me the * record. All is working now.