{"id":39445160,"url":"https://github.com/czerwonk/dns-drain","last_synced_at":"2026-01-18T04:24:17.876Z","repository":{"id":37623001,"uuid":"77207027","full_name":"czerwonk/dns-drain","owner":"czerwonk","description":"Drain and undrain frontends by using DNS","archived":false,"fork":false,"pushed_at":"2025-07-10T04:47:31.000Z","size":7500,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-10T13:23:40.487Z","etag":null,"topics":["dns","drain","frontend","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/czerwonk.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,"zenodo":null}},"created_at":"2016-12-23T07:28:02.000Z","updated_at":"2025-07-10T04:47:35.000Z","dependencies_parsed_at":"2023-02-17T00:15:18.057Z","dependency_job_id":"f79f1e35-afbd-44da-964a-52704d062299","html_url":"https://github.com/czerwonk/dns-drain","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/czerwonk/dns-drain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czerwonk%2Fdns-drain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czerwonk%2Fdns-drain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czerwonk%2Fdns-drain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czerwonk%2Fdns-drain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/czerwonk","download_url":"https://codeload.github.com/czerwonk/dns-drain/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czerwonk%2Fdns-drain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28529514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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":["dns","drain","frontend","golang"],"created_at":"2026-01-18T04:24:17.183Z","updated_at":"2026-01-18T04:24:17.870Z","avatar_url":"https://github.com/czerwonk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dns-drain \n[![Build Status](https://travis-ci.org/czerwonk/dns-drain.svg)](https://travis-ci.org/czerwonk/dns-drain)\n[![Go Report Card](https://goreportcard.com/badge/github.com/czerwonk/dns-drain)](https://goreportcard.com/report/github.com/czerwonk/dns-drain)\n\nDrain by removing/replacing IP/net from DNS records with ease\n\n## Remarks\nThis tool uses GO modules and requires go 1.23+ to build.\n\n## Usage\n\nDrain IP 1.2.3.4 in project api-project-xxx by removing IP from records\n```\n$ dns-drainctl gcloud --project api-project-xxx drain -f drain.json 1.2.3.4/32\n```\n\nDrain IP 1.2.3.4 in project api-project-xxx by replacing IP with 1.2.3.5\n```\n$ dns-drainctl gcloud --project api-project-xxx drain 1.2.3.4/32 -f drain.json --replace-by 1.2.3.5\n```\n\nUndrain by using json file written in drain process\n```\n$ dns-drainctl gcloud --project api-project-xxx undrain -f drain.json\n```\n\n## Supported providers\n* Google Cloud DNS\n\n## Future plans\n* support for more providers\n\n## License\n(c) Daniel Czerwonk, 2016. Licensed under [MIT](LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczerwonk%2Fdns-drain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczerwonk%2Fdns-drain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczerwonk%2Fdns-drain/lists"}