{"id":16462403,"url":"https://github.com/syntaxlexx/cloudflare-dns-mass-updater","last_synced_at":"2026-06-15T05:31:50.017Z","repository":{"id":223476900,"uuid":"760432826","full_name":"syntaxlexx/cloudflare-dns-mass-updater","owner":"syntaxlexx","description":"Update CloudFlare DNS records in mass using a YAML file","archived":false,"fork":false,"pushed_at":"2024-02-28T13:41:20.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T09:15:04.207Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syntaxlexx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-20T12:13:45.000Z","updated_at":"2024-02-20T12:15:11.000Z","dependencies_parsed_at":"2024-02-20T13:31:01.664Z","dependency_job_id":"f1eec906-363e-418c-82f6-3984c0bb8d78","html_url":"https://github.com/syntaxlexx/cloudflare-dns-mass-updater","commit_stats":null,"previous_names":["syntaxlexx/cloudflare-dns-mass-updater"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/syntaxlexx/cloudflare-dns-mass-updater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntaxlexx%2Fcloudflare-dns-mass-updater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntaxlexx%2Fcloudflare-dns-mass-updater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntaxlexx%2Fcloudflare-dns-mass-updater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntaxlexx%2Fcloudflare-dns-mass-updater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syntaxlexx","download_url":"https://codeload.github.com/syntaxlexx/cloudflare-dns-mass-updater/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntaxlexx%2Fcloudflare-dns-mass-updater/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34349925,"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-06-15T02:00:07.085Z","response_time":63,"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":[],"created_at":"2024-10-11T11:11:12.006Z","updated_at":"2026-06-15T05:31:50.005Z","avatar_url":"https://github.com/syntaxlexx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CloudFlare DNS Mass-Updater\nA Cloudflare DNS updater tool to mass-update records\n\n## Getting Started\n- Install [CloudFlare Tools](https://cloudflare-utils.cyberjake.xyz/). \n  - Download from the [Releases](https://github.com/Cyb3r-Jak3/cloudflare-utils/releases) page\n- Generate an `api-token` from your [CloudFlare Dashboard](https://dash.cloudflare.com/profile/api-tokens)\n- Use the api-token in successive requests to the API\n- Alternatively, set the following in your `bashrc` or `zshrc` file\n\n```bash\nexport CLOUDFLARE_API_TOKEN=MyVeryLongToken\n```\n\u003e NB: remember to run `source ~/.bashrc` or `source ~/.zshrc`\n\n## Download DNS (YML)\nRun the following command to download existing DNS config\n\u003e NB: ensure you copy the `zone-id` from cloudflare dashboard unser the selected domain\n\n```bash\ncloudflare-utils --zone-id domain-zone-id dns-cleaner download\n```\n\nIt will download `dns-records.yml` on the current directory.\n\n## Updating the YML file\nIn the `yml` file, every record block is structured in this way:\n\n```yml\n  - id: egfoebfewfwfwef\n    keep: true\n    name: acelords.com\n    type: A\n    content: 127.0.0.1\n```\n\nSetting the `keep: true` to `keep: false` shall delete it form the CLoudFlare DNS.\n\nSome of these records can be as many as 700+, and thus can be tedious doing it manually.\n\n### Updating it, the Node way\nThe file `index.js` contains a variable named `validDns` that accepts a `string` of valid `domain addresses`.\n- Update it as you deem fit.\n- Once done, run \n```bash\nnode index.js\n```\n- The 'fixed' DNSs will be located under a new file `dns-fixed.yml`.\n- do a quick check on the `dns-fixed.yml` file to confirm it's good\n- copy-paste its contents back to `dns-records.yml`. (There's a new `--filename` you can check on how to use it in the [docs](https://github.com/Cyb3r-Jak3/cloudflare-utils). Am just lazy as it's a one-off thing)\n\nTime to upload the changes!\n\n## Upload Changes to CloudFlare DNS\nRun the following command to update the DNS records. This might take a while to complete.\n\n```bash\ncloudflare-utils --zone-id my-domain-zone-id  dns-cleaner upload\n```\n\nYou may read up more on the docs for extra options like a `--dry-run` or something.\n\n## Credits\n- [Let's Connect on Twitter: SyntaxLexx](https://twitter.com/syntaxlexx)\n- [Reach Out: syntaxlexx@gmail.com](mailto:syntaxlexx@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntaxlexx%2Fcloudflare-dns-mass-updater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyntaxlexx%2Fcloudflare-dns-mass-updater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntaxlexx%2Fcloudflare-dns-mass-updater/lists"}