{"id":13312377,"url":"https://github.com/fgh151/dnscode","last_synced_at":"2025-03-16T01:40:27.105Z","repository":{"id":41124183,"uuid":"355143888","full_name":"fgh151/dnscode","owner":"fgh151","description":"Menage dns records as code","archived":false,"fork":false,"pushed_at":"2023-02-08T03:39:32.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T14:24:04.863Z","etag":null,"topics":["dns","infrastructure-as-code"],"latest_commit_sha":null,"homepage":"","language":"Go","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/fgh151.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":"2021-04-06T10:13:08.000Z","updated_at":"2022-06-28T17:36:34.000Z","dependencies_parsed_at":"2024-11-22T09:01:40.689Z","dependency_job_id":null,"html_url":"https://github.com/fgh151/dnscode","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgh151%2Fdnscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgh151%2Fdnscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgh151%2Fdnscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgh151%2Fdnscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fgh151","download_url":"https://codeload.github.com/fgh151/dnscode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814907,"owners_count":20352037,"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","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","infrastructure-as-code"],"created_at":"2024-07-29T18:03:47.224Z","updated_at":"2025-03-16T01:40:27.087Z","avatar_url":"https://github.com/fgh151.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"DNSCODE\n-------\n\nControl DNS records in single file independent of provider.\n\n### Supported providers:\n\n * Pdd yandex\n * Reg.ru\n * Adman.com\n\n### Usage:\n\nCreate file dnscode.json for example\n```json\n{\n \"zones\": [\n  {\n   \"provider\": \"yandex\",\n   \"name\": \"example.ru\",\n   \"records\": null,\n   \"connection\": {\n    \"PddToken\": \"token from page https://pddimp.yandex.ru/api2/admin/get_token\"\n   }\n  },\n  {\n   \"provider\": \"adman\",\n   \"name\": \"example.org\",\n   \"records\": null,\n   \"connection\": {\n    \"login\": \"login to adman\",\n    \"mdpass\": \"api key generated on page https://adman.com/pages/api/\"\n   }\n  },\n  {\n   \"provider\": \"regru\",\n   \"name\": \"example.com\",\n   \"records\": null,\n   \"connection\": {\n    \"password\": \"password\",\n    \"username\": \"login\"\n   }\n  }\n ]\n}\n```\n\nThen you can import records:\n```shell\ndnscode import\n```\n\nThis command import records. Allowed flags:\n\n * --filename - filename which will contain imported record\n * --useImport=true|false - if true dnscode will create own file for each zone (default true)\n\nNow you can manage zone by edit file. After you can see changes:\n\n```shell\ndnscode plan\n```\nAnd apply changes\n```shell\ndnscode apply\n```\n\nAllowed flags for apply command:\n * --force=true|false - delete records from provider (default true)\n * --interactive=true|false - confirm apply? (default true)\n\nFlags for all commands:\n * --proxy=addr.com - proxy server. For example see proxy/server.go\n\n### Add provider\nTo create a new provider, add provider file to providers folder, \ncreate provider struct which implement providers.BaseProvider.\nAdd your provider to function GetProvider() in file providers/base.go\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgh151%2Fdnscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgh151%2Fdnscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgh151%2Fdnscode/lists"}