{"id":13667855,"url":"https://github.com/migege/dnspod","last_synced_at":"2025-04-26T18:30:38.874Z","repository":{"id":217141777,"uuid":"64207289","full_name":"migege/dnspod","owner":"migege","description":"dnspod.py 是基于 DNSPod 服务的动态 DNS 脚本，用于检测 IP 变化并更新至 DNSPod，支持多域名解析。支持 Linux 设备，包括树莓派（Raspberry Pi）。","archived":false,"fork":false,"pushed_at":"2022-10-06T15:56:27.000Z","size":7,"stargazers_count":66,"open_issues_count":2,"forks_count":31,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-11T03:33:56.273Z","etag":null,"topics":["dnspod","dynamic-dns","linux","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"Python","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/migege.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":"2016-07-26T09:11:51.000Z","updated_at":"2024-03-04T07:03:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"325ca768-96bb-4dfb-a900-5df22fcacc81","html_url":"https://github.com/migege/dnspod","commit_stats":null,"previous_names":["migege/dnspod"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migege%2Fdnspod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migege%2Fdnspod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migege%2Fdnspod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migege%2Fdnspod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/migege","download_url":"https://codeload.github.com/migege/dnspod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251035119,"owners_count":21526307,"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":["dnspod","dynamic-dns","linux","raspberry-pi"],"created_at":"2024-08-02T07:00:51.950Z","updated_at":"2025-04-26T18:30:38.295Z","avatar_url":"https://github.com/migege.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# dnspod.py\n\n```\n@author migege\n@version 0.0.2\n```\n\ndnspod.py 是基于 [DNSPod](http://www.dnspod.cn/docs/records.html#dns) 服务的动态 DNS 脚本，用于检测 IP 变化并更新至 DNSPod，支持多域名解析。支持 Linux 设备，包括树莓派（[Raspberry Pi](https://www.raspberrypi.org/)）。\n\n# Prerequisites\n\n1. python\n1. pyyaml\n1. requests\n\npython 的模块可通过 ```pip install``` 命令安装。如果未安装 [pip](https://pip.pypa.io/)，请先安装 pip。\n\n# Installation\n\n安装 [git](https://git-scm.com/) 客户端，通过本命令获取 dnspod.py\n\n\u003cpre\u003e\ngit clone https://github.com/migege/dnspod.git dnspod\n\u003c/pre\u003e\n\n然后到 dnspod 目录下新建 ```conf.yaml``` 文件，根据您的 DNSPod 设置，填入以下内容：\n\n\u003cpre\u003e\ntoken: \u0026lt;your_api_token\u0026gt;\nsub_domains:\n  \u0026lt;your_first_sub_domain_name\u0026gt;:\n    domain_id: \u0026lt;your_domain_id\u0026gt;\n    record_id: \u0026lt;your_record_id\u0026gt;\n  \u0026lt;your_second_sub_domain_name\u0026gt;:\n    domain_id: \u0026lt;your_domain_id\u0026gt;\n    record_id: \u0026lt;your_record_id\u0026gt;\n\u003c/pre\u003e\n\n最后设置 crontab 定时任务\n\n\u003cpre\u003e\n*/10 * * * * cd \u0026lt;path_to_dnspod\u0026gt;; /usr/bin/python dnspod.py conf.yaml \u0026gt; /dev/null 2\u0026gt;\u00261 \u0026\n\u003c/pre\u003e\n\n# Tips\n\n1. */10 表示每 10 分钟执行一次 dnspod.py\n1. 如果 python 可执行路径不是 /usr/bin/python，请自行替换\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmigege%2Fdnspod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmigege%2Fdnspod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmigege%2Fdnspod/lists"}