{"id":20286383,"url":"https://github.com/antoonline/python-cloudflare-dns-checker","last_synced_at":"2025-11-30T17:02:50.074Z","repository":{"id":163261878,"uuid":"638659351","full_name":"AntoOnline/python-cloudflare-dns-checker","owner":"AntoOnline","description":"This script retrieves all A and AAAA records for all domains in a Cloudflare account, and performs DNS and basic HTTP/HTTPS status code checks to verify that the records are set up correctly. ","archived":false,"fork":false,"pushed_at":"2023-05-09T22:05:36.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T04:12:29.449Z","etag":null,"topics":["a","aaaa","cloudflare","dns","http","python","status"],"latest_commit_sha":null,"homepage":"https://anto.online","language":"Python","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/AntoOnline.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-09T20:32:53.000Z","updated_at":"2024-07-24T12:52:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"57766b76-441c-44d6-aa85-504e712c66b0","html_url":"https://github.com/AntoOnline/python-cloudflare-dns-checker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AntoOnline/python-cloudflare-dns-checker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fpython-cloudflare-dns-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fpython-cloudflare-dns-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fpython-cloudflare-dns-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fpython-cloudflare-dns-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AntoOnline","download_url":"https://codeload.github.com/AntoOnline/python-cloudflare-dns-checker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fpython-cloudflare-dns-checker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27401135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-30T02:00:05.582Z","response_time":55,"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":["a","aaaa","cloudflare","dns","http","python","status"],"created_at":"2024-11-14T14:33:53.197Z","updated_at":"2025-11-30T17:02:50.033Z","avatar_url":"https://github.com/AntoOnline.png","language":"Python","readme":"# Cloudflare DNS Checker\n\nThis script retrieves all A and AAAA records for all domains in a Cloudflare account, and performs DNS and basic HTTP/HTTPS status code checks to verify that the records are set up correctly. It does not check SSL Certificate validity.\n\n## Installation\n\n1. Clone or download the repository to your local machine.\n2. Install the required dependencies using pip: `pip install -r requirements.txt`\n3. Rename the `config.ini.example` file to `config.ini`.\n4. Fill in your Cloudflare API token and DNS resolver settings in the `config.ini` file.\n\n## Usage\n\nTo run the script, simply run the `cloudflare_dns_checker.py` file:\n\n```\npython cloudflare_dns_checker.py\n```\n\nThe script will retrieve all A records for all domains in your Cloudflare account and perform the following checks for each record:\n\n- DNS lookup for both IPv4 and IPv6 addresses.\n- HTTP request to the specified domain over both HTTP and HTTPS protocols.\n\nIf any errors occur during these checks, they will be printed to the console.\n\n## Example output\n\n```\n--\nZone for anto.online (zone_id: fsa5e492cabc)\n--\n- IPv4 address for anto.online: 1722.67.1631.80\n- IPv6 address for anto.online: 26206:4700:30330::ac43:a150\n- HTTP status code for anto.online: 200\n- HTTPS status code for anto.online: 200\n- IPv4 address for demo.anto.online: 1104.21.9.197\n- IPv6 address for demo.anto.online: 2606:47030:3030::ac43:a150\n- HTTP status code for demo.anto.online: 200\n- HTTPS status code for demo.anto.online: 200\n\n--\nZone for example.com (zone_id: fsa5e492cabc)\n--\n- IPv4 address for example.com: 1014.211.7134.212\n- IPv6 address for example.com: 26106:4100:3037::6815:4ad4\n- HTTP status code for example.com: 200\n- HTTPS status code for example.com: 200\n- IPv4 address for www.example.com: 1172.617.2106.120\n- IPv6 address for www.example.com: 26106:4100:30337::6815:4ad4\n- HTTP status code for www.example.com: 200\n- HTTPS status code for www.example.com: 200\n```\n\n## Configuration\n\nThe script is configured using the `config.ini` file. The file contains the following settings:\n\n- `api_token`: Your Cloudflare API token. You can generate a new token in the Cloudflare dashboard.\n- `nameserver`: The DNS resolver to use for lookups.\n- `timeout`: The timeout for DNS and HTTP requests, in seconds.\n\nYou can modify these settings to match your Cloudflare account and DNS configuration.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Want to connect?\n\nFeel free to contact me on [Twitter](https://twitter.com/OnlineAnto), [DEV Community](https://dev.to/antoonline/) or [LinkedIn](https://www.linkedin.com/in/anto-online) if you have any questions or suggestions.\n\nOr just visit my [website](https://anto.online) to see what I do.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoonline%2Fpython-cloudflare-dns-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantoonline%2Fpython-cloudflare-dns-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoonline%2Fpython-cloudflare-dns-checker/lists"}