{"record":{"id":"02e07be1fb795153","repo":"coollabsio/coolify","slug":"a-valid-ipv4-or-ipv6-address-is-required-for-dns-a","errorCode":null,"errorMessage":"A valid IPv4 or IPv6 address is required for DNS autoconfigure.","messagePattern":"A valid IPv4 or IPv6 address is required for DNS autoconfigure\\.","errorType":"exception","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"app/Support/DomainConnect/CloudflareDomainConnect.php","lineNumber":117,"sourceCode":"            .'&sig='.rawurlencode($signature);\n\n        return self::CLOUDFLARE_SYNC_UX\n            .'/v2/domainTemplates/providers/'.rawurlencode($this->providerId())\n            .'/services/'.rawurlencode($this->serviceId())\n            .'/apply?'.$finalQuery;\n    }\n\n    /**\n     * Point a zone (and optional host) A record at the Coolify server IP.\n     */\n    public function buildHostingApplyUrl(\n        string $domain,\n        string $ip,\n        ?string $host = null,\n        ?string $redirectUri = null,\n    ): string {\n        if (filter_var($ip, FILTER_VALIDATE_IP) === false) {\n            throw new InvalidArgumentException('A valid IPv4 or IPv6 address is required for DNS autoconfigure.');\n        }\n\n        return $this->buildApplyUrl(\n            domain: $domain,\n            variables: ['ip' => $ip],\n            host: $host,\n            redirectUri: $redirectUri,\n        );\n    }\n\n    /**\n     * Split a hostname into its registrable domain and relative host.\n     *\n     * Uses a small multi-part public-suffix set for common cases (e.g. co.uk)\n     * instead of shipping the full Mozilla Public Suffix List (~300KB).\n     * Unknown multi-part TLDs fall back to last-two-labels; Cloudflare will\n     * still match the user's zone when the guess is close enough.\n     *","sourceCodeStart":99,"sourceCodeEnd":135,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Support/DomainConnect/CloudflareDomainConnect.php#L99-L135","documentation":"Error \"A valid IPv4 or IPv6 address is required for DNS autoconfigure.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Support/DomainConnect/CloudflareDomainConnect.php:117 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"70b9acc42467278373e00de77abb40684e25b395","analyzedAt":"2026-08-17T01:41:01.313Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}