Jikke
May 10, 2020, 9:09am
1
Hello,
I am currently trying to create DNS records with the Cloudflare API, for this I use this code
But I get the following error with this:
{
"result": null,
"success": false,
"errors": [
{
"code": 1004,
"message": "DNS Validation Error", (truncated...)
in /var/www/pterodactyl/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
I don’t get to see anything more.
$subdomain = test
$protocol = TCP
$allocation[0]->port = the port of the server
$allocation[0]->ip_alias = my domain
Since I don’t get information about what is wrong, I hope someone can help me with this.
Thanks in advance!
You didn’t mention the domain, but it could be this:
I have been using the API to update DDNS, and today I found that I cannot update my DDNS using the API.
Check the log file and find the error message: “error”: "You cannot use this API for domains (top-level domains) with .cf, .ga, .gq, .ml or .tk TLDs. DNS settings for this domain, please Use the Cloudflare dashboard.
Display cf, .ga, .gq, .ml or .tk, these TLDs can only update DDNS through the dashboard. (My domain name happens to be tk and ga)
I do n’t know why cloudflare made this modific…
Jikke
May 10, 2020, 2:14pm
3
Thanks for your reply,
No thats not the problem, its mydomain.net and its proxyt with Cloudflare
But i think the problem is that the site where im trying to make the DNS is an DNS of mydomain.net (panel.mydomain.net ) so it can’t get the IP of mydomain.net as thats not the site where im doing this on