{"id":50917672,"url":"https://github.com/yearn/dns-bot","last_synced_at":"2026-06-16T17:02:13.551Z","repository":{"id":293327080,"uuid":"983677986","full_name":"yearn/dns-bot","owner":"yearn","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-11T23:51:32.000Z","size":101,"stargazers_count":14,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-06-12T01:19:21.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/yearn.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-14T18:39:53.000Z","updated_at":"2026-06-11T23:51:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"793182f2-7b22-4c84-845f-2ebca0c60dcf","html_url":"https://github.com/yearn/dns-bot","commit_stats":null,"previous_names":["wavey0x/dns-bot","yearn/dns-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yearn/dns-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Fdns-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Fdns-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Fdns-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Fdns-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yearn","download_url":"https://codeload.github.com/yearn/dns-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yearn%2Fdns-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34415248,"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-16T02:00:06.860Z","response_time":126,"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":"2026-06-16T17:02:10.726Z","updated_at":"2026-06-16T17:02:13.546Z","avatar_url":"https://github.com/yearn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DNS Monitor Bot\n\nA simple to configure, pre-built Cloudflare Worker that monitors DNS records for any list of user-specified domains and sends notifications via Telegram when changes are detected.\n\nThe project is designed to stay comfortably within Cloudflare's free tier for it's Worker and KV storage services.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"images/example_alert.png\" alt=\"Example alert\" /\u003e\n  \u003cbr/\u003e\n  \u003ci\u003eExample alert\u003c/i\u003e\n\u003c/p\u003e\n\n## Prerequisites\n\n- [Node.js](https://nodejs.org/) (v20 or later)\n- [npm](https://www.npmjs.com/) (comes with Node.js)\n- [Wrangler CLI](https://developers.cloudflare.com/workers/wrangler/install-and-update/) (v4 or later)\n\n## Setup\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/wavey0x/dns-bot.git\n   cd dns-bot\n   ```\n\n2. **Install dependencies:**\n\n   ```bash\n   npm install\n   ```\n\n3. **Configure your bot:**\n\n   All configuration lives in your repository's Settings \u003e Secrets and variables \u003e Actions.[^1]\n\n   - Get your Cloudflare API token[^2]\n\n4. **Deploy the bot:**\n\n   Deploys only run via GitHub Actions — push to the `main`/`master` branch (or trigger the workflow manually) and the GitHub Action will deploy the bot.\n\n## Viewing Logs\n\nTo view the logs for your deployed worker:\n\n1. Go to the [Cloudflare Dashboard](https://dash.cloudflare.com/).\n2. Navigate to **Workers \u0026 Pages**.\n3. Select your worker (`dns-bot`).\n4. Click on **Logs** to view the worker's logs.\n\n## Troubleshooting\n\n- **Wrangler not found:** Ensure Wrangler is installed globally or use `npx wrangler`.\n- **Deployment fails:** Check your API token and ensure all environment variables are set correctly.\n- **No logs:** Ensure logging is enabled in your `wrangler.toml` file.\n- **GitHub Actions fails:** Verify that all required secrets are set in your repository's Settings \u003e Secrets and variables \u003e Actions.\n\n## Footnotes\n\n[^1]: Go to your repository's Settings \u003e Secrets and variables \u003e Actions. Add the sensitive values as **secrets**: `CLOUDFLARE_API_TOKEN`, `CLOUDFLARE_ACCOUNT_ID`, and `TELEGRAM_BOT_TOKEN`. Add the rest as **variables**: `MONITOR_DOMAINS` (comma-separated domains) and `TELEGRAM_CHAT_ID`, plus optionally `TELEGRAM_THREAD_ID` to post alerts to a specific topic thread in a Telegram group chat and `HEARTBEAT_URL` for Uptime Kuma push monitoring. Optionally add `ALLOWED_IP_RANGES` (e.g. `flexmeow.com=216.150.0.0/16;other.com=76.76.21.0/24,76.76.22.0/24`) so IP changes that stay inside a domain's expected CIDR ranges update state silently instead of alerting - useful for hosts like Vercel that rotate IPs within known pools.\n[^2]: To get your Cloudflare API token:\n\n    1. Go to the [Cloudflare Dashboard](https://dash.cloudflare.com/)\n    2. Navigate to **My Profile** \u003e **API Tokens**\n    3. Click **Create Token**\n    4. Choose **Create Custom Token**\n    5. Set the following permissions:\n       - **Account** \u003e **Workers** \u003e **Edit**\n       - **Zone** \u003e **DNS** \u003e **Read**\n    6. Set the **Account Resources** to **All accounts**\n    7. Set the **Zone Resources** to **All zones**\n    8. Click **Continue to summary** and then **Create Token**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyearn%2Fdns-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyearn%2Fdns-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyearn%2Fdns-bot/lists"}