{"id":19482332,"url":"https://github.com/cnfatal/alidnsctl","last_synced_at":"2025-10-19T21:48:21.218Z","repository":{"id":113421487,"uuid":"585950495","full_name":"cnfatal/alidnsctl","owner":"cnfatal","description":"A tool to operate alidns records.","archived":false,"fork":false,"pushed_at":"2023-01-08T06:28:06.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-22T11:51:57.462Z","etag":null,"topics":["alidns","ddns"],"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/cnfatal.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-01-06T14:31:45.000Z","updated_at":"2023-01-08T02:37:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"40c1dbd3-7faf-41eb-b942-33d2bcdb0003","html_url":"https://github.com/cnfatal/alidnsctl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cnfatal/alidnsctl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnfatal%2Falidnsctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnfatal%2Falidnsctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnfatal%2Falidnsctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnfatal%2Falidnsctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cnfatal","download_url":"https://codeload.github.com/cnfatal/alidnsctl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnfatal%2Falidnsctl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279921139,"owners_count":26244343,"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-10-19T02:00:07.647Z","response_time":64,"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":["alidns","ddns"],"created_at":"2024-11-10T20:09:45.663Z","updated_at":"2025-10-19T21:48:21.204Z","avatar_url":"https://github.com/cnfatal.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# alidnsctl\n\nA lite tool to operate with Aliyun DNS Records.\n\n## Quick Start\n\nAn exampl in ppp `/etc/ppp/ip-up.d/20-ddns.sh` script:\n\n```sh\n#!/bin/sh -e\n\nexport ACCESS_KEY_ID=\"\u003caccess key id\u003e\"\nexport ACCESS_KEY_SECRET=\"\u003caccess key secret\u003e\"\n\nalidnsctl set router.example.com ${IPLOCAL}\n```\n\n## Install\n\nDownload prebuild binaries from [github release](https://github.com/cnfatal/alidnsctl/releases/latest).\n\n```sh\nwget https://github.com/cnfatal/alidnsctl/releases/latest/download/alidnsctl-linux-amd64 -O /usr/bin/alidnsctl\nchmod +x /usr/bin/alidnsctl\n```\n\nInstall from source code:\n\n```sh\ngo install github.com/cnfatal/alidnsctl@latest\n```\n\n## Usage\n\nSet access key via enviroment:\n\n```sh\nexport ACCESS_KEY_ID=\u003caccess key id\u003e\nexport ACCESS_KEY_SECRET=\u003caccess key id\u003e\n```\n\nExample update records:\n\n```sh\nalidnsctl set api.example.com 127.0.0.1\nalidnsctl set --type AAAA api.example.com fe80::b0bb:26ff:fe2b:cb20\nalidnsctl set --type CNAME @.example.com www.example.com\nalidnsctl set --type TXT txt.example.com hello_world hello_world2\n```\n\nFor more infomations see help:\n\n```sh\nalidnsctl --help\n```\n\nList records:\n\n```sh\n$ alidnsctl list abc.example.com\n[\n  {\n    \"DomainName\": \"example.com\",\n    \"Line\": \"default\",\n    \"Locked\": false,\n    \"RR\": \"abc\",\n    \"RecordId\": \"xxxxxxxxx\",\n    \"Status\": \"ENABLE\",\n    \"TTL\": 600,\n    \"Type\": \"CNAME\",\n    \"Value\": \"www.example.com\",\n    \"Weight\": 1\n  }\n]\n```\n\nRemove Record:\n\n```sh\n$ alidnsctl del router.example.com 127.0.0.1 fe80::b0bb:26ff:fe2b:cb20\n[] #show left records on rr\n```\n\nList Domains:\n\n```sh\n$ alidnsctl domains list\n[\n  {\n    \"AliDomain\": true,\n    \"CreateTime\": \"2017-09-07T01:21Z\",\n    \"CreateTimestamp\": 1504747278000,\n    \"DnsServers\": {\n      \"DnsServer\": [\n        \"dns29.hichina.com\",\n        \"dns30.hichina.com\"\n      ]\n    },\n    \"DomainId\": \"xxxx-xxxx-xxxx-xxxx-675c9c69e149\",\n    \"DomainName\": \"example.com\",\n    \"PunyCode\": \"example.com\",\n    \"RecordCount\": 8,\n    \"ResourceGroupId\": \"group\",\n    \"Starmark\": false,\n    \"Tags\": {},\n    \"VersionCode\": \"mianfei\",\n    \"VersionName\": \"Alibaba Cloud DNS\"\n  }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnfatal%2Falidnsctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcnfatal%2Falidnsctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnfatal%2Falidnsctl/lists"}