{"id":18483726,"url":"https://github.com/tensoar/ddns-dnspod","last_synced_at":"2025-05-13T20:35:21.030Z","repository":{"id":104352306,"uuid":"501115166","full_name":"tensoar/DDNS-Dnspod","owner":"tensoar","description":"ddns for dnspod","archived":false,"fork":false,"pushed_at":"2022-06-08T05:45:40.000Z","size":60,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T20:33:09.893Z","etag":null,"topics":["ddns","ddns-script","dnspod","dnspod-ddns"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/tensoar.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}},"created_at":"2022-06-08T05:40:25.000Z","updated_at":"2022-06-13T00:49:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"7cf1fe95-f83f-43c3-bd06-b9ee4127f01d","html_url":"https://github.com/tensoar/DDNS-Dnspod","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tensoar%2FDDNS-Dnspod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tensoar%2FDDNS-Dnspod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tensoar%2FDDNS-Dnspod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tensoar%2FDDNS-Dnspod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tensoar","download_url":"https://codeload.github.com/tensoar/DDNS-Dnspod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254021580,"owners_count":22000949,"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":["ddns","ddns-script","dnspod","dnspod-ddns"],"created_at":"2024-11-06T12:37:03.977Z","updated_at":"2025-05-13T20:35:20.997Z","avatar_url":"https://github.com/tensoar.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DDNS\n\n基于`dnspod`的`ddns`工具，定时请求`dnspod`的`api`更新域名解析记录，若记录不存在则添加，记录发生变动则修改。\n\n## 打包\n\n安装依赖:\n\n```bash\nyarn\n```\n\n编译为二进制可执行文件(基于`pkg`):\n\n```bash\n# linux\nnpm run package:linux\n\n# windows\nnpm run package:win\n```\n\n## 使用\n\n自行打包或在`relase`中下载已经打好的二进制文件，直接运行即可:\n\n```bash\nddns -c \u003cconfig\u003e\n```\n\n使用`pm2`:\n\n```bash\npm2 start ddns --name ddns -- -c \u003cconfig\u003e\n```\n\n`\u003cconfig\u003e`为`utf8`编码的`yaml`格式配置文件,示例:\n\n```yaml\napplication:\n  # 每隔多久检查同步一次,单位分钟\n  interval: 15\nauth:\n  # dnspod账户的token\n  token: dnspod-token\n  # dnspod账户的授权id\n  id: dnspod-id\nlog:\n  # 日志输出级别\n  level: info\ndomains: # 要解析的域名列表\n  - domain: example.com # 要解析的域名\n    # 要解析的域名记录列表\n    records:\n      - name: sub1 # 域名记录的名称,sub1.example.com\n        value: local ipv6 # 记录的值,若为local ipv6,则自动探测机器的公网ipv6地址\n        type: AAAA # 记录类型\n        ttl: 600 # ttl值,单位秒\n        enabled: 1 # 是否生效\n      - name: @\n        value: 192.168.18.223\n        type: A\n        ttl: 600\n        enabled: 1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftensoar%2Fddns-dnspod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftensoar%2Fddns-dnspod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftensoar%2Fddns-dnspod/lists"}