{"id":23647878,"url":"https://github.com/unixreaper/cloudflare-dns-manager","last_synced_at":"2026-07-17T21:46:37.570Z","repository":{"id":216966561,"uuid":"742783235","full_name":"unixreaper/CloudFlare-DNS-Manager","owner":"unixreaper","description":"Easily automate and manage your CloudFlare DNS records with the Node.js and Python3 CloudFlare DNS Manager library. This powerful tool allows developers to seamlessly interact with CloudFlare's DNS API, enabling automatic management of DNS records.","archived":false,"fork":false,"pushed_at":"2024-01-14T14:37:09.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-27T16:41:30.813Z","etag":null,"topics":["cloud","cloudautomation","cloudflare","cloudflare-api","dns","domain","nodejs","python","python3"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unixreaper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-13T11:02:32.000Z","updated_at":"2024-01-13T16:52:33.000Z","dependencies_parsed_at":"2024-01-15T00:11:43.764Z","dependency_job_id":"80dc6d61-285f-41b0-86fe-7102701d94e3","html_url":"https://github.com/unixreaper/CloudFlare-DNS-Manager","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"5abfb5c0a4475513035575c942469902e4a6e730"},"previous_names":["binarywarfare/cloudflare-dns-manager","unixreaper/cloudflare-dns-manager"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/unixreaper/CloudFlare-DNS-Manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unixreaper%2FCloudFlare-DNS-Manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unixreaper%2FCloudFlare-DNS-Manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unixreaper%2FCloudFlare-DNS-Manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unixreaper%2FCloudFlare-DNS-Manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unixreaper","download_url":"https://codeload.github.com/unixreaper/CloudFlare-DNS-Manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unixreaper%2FCloudFlare-DNS-Manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35597010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-17T02:00:06.162Z","response_time":116,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud","cloudautomation","cloudflare","cloudflare-api","dns","domain","nodejs","python","python3"],"created_at":"2024-12-28T14:49:09.227Z","updated_at":"2026-07-17T21:46:37.534Z","avatar_url":"https://github.com/unixreaper.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ccenter\u003e\n\u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/4/4b/Cloudflare_Logo.svg/2560px-Cloudflare_Logo.svg.png\" alt=\"Icon\" width=\"420\" height=\"150\"\u003e\n\u003c/center\u003e\n\n\n# CloudFlare-DNS-Manager\n\nEasily automate and manage your **CloudFlare DNS** records with the **Node.js** and **Python3** CloudFlare DNS Manager library. This powerful tool allows developers to seamlessly interact with CloudFlare's DNS API, enabling automatic management of DNS records\n\n## Inside\n```mermaid\ngraph LR\nA[Library] -- Axios --\u003e B(Cloudflare API)\nD --Response--\u003e A(Library)\nB -- Communication --\u003e D((Cloudfalre DNS))\n\n```\n\n## Installation\n**NodeJS** required version **\u003e 10.2.x**\n```sh\nnpm install cloudflare-dns-manager@latest\n```\n\n## Example:\n**NodeJS:**\n```js\nconst CloudflareAPI = require('cloudflare-dns-manager');\n\n// Replace 'your-email' and 'your-api-key' with your actual CloudFlare credentials\n// แทน 'your-email' และ 'your-api-key' ด้วยข้อมูลบัญชี CloudFlare ของคุณ\nconst cfAPI = new CloudflareAPI('your-email@example.com', 'your-api-key');\n\n// Replace 'your-zone-id' with the actual Zone ID you want to work with\n// แทน 'your-zone-id' ด้วย Zone ID ที่คุณต้องการใช้งาน\nconst zoneId = 'your-zone-id';\n\n\n// Example: Add a new DNS record\n// ตัวอย่าง: เพิ่ม record DNS ใหม่\n(async () =\u003e {\n\tconst targetIp = '192.168.1.1';\n\tconst recordName = 'example.com';\n\tconst recordType = 'A';\n\ttry {\n\t    const result = await cfAPI.addDnsRecord(targetIp, recordName, recordType, zoneId);\n\t    console.log(result);\n\t} catch (error) {\n\t    console.error(error);\n\t}\n})();\n\n\n// Example: Get the list of DNS records\n// ตัวอย่าง: ดึงรายการ DNS records\n(async () =\u003e {\t\n\ttry {\n\t    const result = await cfAPI.dnsScan(zoneId);\n\t    console.log(result);\n\t} catch (error) {\n\t    console.error(error);\n\t}\n})();\n\n\n// Example: Update a DNS record\n// ตัวอย่าง: อัพเดท record DNS\n(async () =\u003e {\t\n\tconst updatedIp = '192.168.1.2';\n\tconst recordIdToUpdate = 'record-id-to-update'; // Replace with the actual record ID\n\ttry {\n\t    const result = await cfAPI.updateDnsRecord(updatedIp, recordName, recordType, zoneId, recordIdToUpdate);\n\t    console.log(result);\n\t    // If you want Data only. หากต้องการสำหรับข้อมูลเท่านั้น.\n\t    console.log(result.data);\n\t} catch (error) {\n\t    console.error(error);\n\t}\n})();\n\n\n// Example: Delete a DNS record\n// ตัวอย่าง: ลบ record DNS\n(async () =\u003e {\t\n\tconst recordIdToDelete = 'record-id-to-delete'; // Replace with the actual record ID\n\ttry {\n\t    const result = await cfAPI.deleteDnsRecord(zoneId, recordIdToDelete);\n\t    console.log(result);\n\t} catch (error) {\n\t    console.error(error);\n\t}\n})();\n\n\n```\n## FAQ\n- **How to get cloudflare API** ?\n[-\u003e Read here \u003c-](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/)\n- **Where do i get zoneId** ?\n\t1. Visit https://dash.cloudflare.com\n\t2. Select your **domain** .![](https://cdn.discordapp.com/attachments/1050619922377625661/1195761570232410122/image_1.png)\n\t3. Then click **copy** here. ![](https://cdn.discordapp.com/attachments/1050619922377625661/1195762645463216138/image_2.png)\n\n\n## Class function infromation\n\n**Usage for each function in the class.**\n\n| Class Function | Args| Response json key |\n|----------------|-------------------------------|-----------------------------|\n|dnsScan|`zoneId`            |`success`, `exception`, `message`, `data `           |\n|addDnsRecord          |`targetIp,  name,  recordType,  zoneId, comment, ttl`            |`success`, `exception`, `message`, `data`           |\n|updateDnsRecord          |`targetIp,  name,  recordType,  zoneId, comment, ttl`            |`success`, `exception`, `message`, `data`           |\n|deleteDnsRecord          |`zoneId,  recordId`|`success`, `exception`, `message`, `data`           |\n\n**The default time-to-live (TTL) is set to 300, and the comment is automatically included—there's no need to parse the argument (ttl, comment) through the function**.\n\n\n### Record Types\n`A`, `AAAA`, `CAA`, `CERT`, `CNAME`, `DNSKEY`, `DS`, `HTTPS`, `LOC`, `MX`, `NAPTR`, `NS`, `PTR`, `SMIMEA`, `SRV`, `SSHFP`, `SVCB`, `TLSA`, `TXT`, `URI`\n\n\n\n## Update\nFull advanced library updates \u0026 Python3 library is coming soon\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funixreaper%2Fcloudflare-dns-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funixreaper%2Fcloudflare-dns-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funixreaper%2Fcloudflare-dns-manager/lists"}