{"id":35120237,"url":"https://github.com/cxbdasheng/dnet","last_synced_at":"2026-02-12T06:23:44.164Z","repository":{"id":316095068,"uuid":"1056653881","full_name":"cxbdasheng/dnet","owner":"cxbdasheng","description":"一款轻量级动态网络管理工具，支持多平台的 CDN、DNS 和 内网穿透自动化管理与监控。","archived":false,"fork":false,"pushed_at":"2026-01-28T06:13:28.000Z","size":1256,"stargazers_count":132,"open_issues_count":1,"forks_count":17,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-28T19:24:57.979Z","etag":null,"topics":["aliyun-api","bai-du","baiduyun","cdn","dcdn","ddns","ipv6","tencentcloud-sdk"],"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/cxbdasheng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-14T14:39:13.000Z","updated_at":"2026-01-28T06:05:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"49b13205-cee9-403c-85f3-7609157cebc2","html_url":"https://github.com/cxbdasheng/dnet","commit_stats":null,"previous_names":["cxbdasheng/dnet"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/cxbdasheng/dnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxbdasheng%2Fdnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxbdasheng%2Fdnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxbdasheng%2Fdnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxbdasheng%2Fdnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cxbdasheng","download_url":"https://codeload.github.com/cxbdasheng/dnet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxbdasheng%2Fdnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29360644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T01:03:07.613Z","status":"online","status_checked_at":"2026-02-12T02:00:06.911Z","response_time":55,"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":["aliyun-api","bai-du","baiduyun","cdn","dcdn","ddns","ipv6","tencentcloud-sdk"],"created_at":"2025-12-27T23:38:13.097Z","updated_at":"2026-02-12T06:23:44.132Z","avatar_url":"https://github.com/cxbdasheng.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# D-NET 动态网络解析管理系统\n一款轻量级动态网络管理工具，支持多平台的 CDN、DNS 和 内网穿透自动化管理与监控。\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![Go Version](https://img.shields.io/badge/go-%3E%3D1.23.0-blue.svg)](https://golang.org/)\n[![Release](https://img.shields.io/github/v/release/cxbdasheng/dnet)](https://github.com/cxbdasheng/dnet/releases)\n[![Go Report Card](https://goreportcard.com/badge/github.com/cxbdasheng/dnet)](https://goreportcard.com/report/github.com/cxbdasheng/dnet)\n[![Docker Pulls](https://img.shields.io/docker/pulls/cxbdasheng/dnet)](https://hub.docker.com/r/cxbdasheng/dnet)\n[![GitHub Downloads](https://img.shields.io/github/downloads/cxbdasheng/dnet/total)](https://github.com/cxbdasheng/dnet/releases)\n\n[主要功能](#主要功能) • [快速开始](#快速开始) • [Wiki 文档](https://github.com/cxbdasheng/dnet/wiki)\n\u003c/div\u003e\n\n---\n\n## 主要功能\n\n- **动态 CDN 管理 (DCDN)：** 支持阿里云（CDN、DCDN、ESA）、腾讯云（CDN、EdgeOne）、百度云（CDN、DRCDN）\n- **动态 DNS 管理 (DDNS)：** 自动更新域名解析记录（V2 版本规划中）\n- **内网穿透管理：** 从外网访问内网服务（V3 版本规划中）\n- **Webhook 通知：** 实时推送 IP 变更通知\n- **Web 管理界面：** 可视化配置和管理\n\n### 界面\n![界面](https://raw.githubusercontent.com/cxbdasheng/dnet/refs/heads/main/dnet.png)\n\n## 快速开始\n\n\u003e 更多使用示例和详细配置说明见 [Wiki](https://github.com/cxbdasheng/dnet/wiki)，常见问题见 [FAQ](https://github.com/cxbdasheng/dnet/wiki/FAQ)。\n\n### 方式一：使用二进制文件\n\n#### 1. 下载安装\n\n从 [Releases](https://github.com/cxbdasheng/dnet/releases) 页面下载适合您系统的版本并解压。\n\n#### 2. 安装为系统服务\n\n**Mac/Linux:**\n```bash\nsudo ./dnet -s install\n```\n\n**Windows（管理员权限）：**\n```bash\n.\\dnet.exe -s install\n```\n\n#### 3. 访问 Web 界面\n\n浏览器访问 `http://localhost:9877` 进行配置。\n\n#### 服务管理\n\n```bash\n# 卸载服务\nsudo ./dnet -s uninstall          # Mac/Linux\n.\\dnet.exe -s uninstall           # Windows (管理员)\n\n# 重启服务\nsudo ./dnet -s restart            # Mac/Linux\n.\\dnet.exe -s restart             # Windows (管理员)\n```\n\n#### 高级选项\n\n安装服务时可以指定以下参数：\n\n| 参数 | 说明 | 示例                        |\n|------|------|---------------------------|\n| `-l` | 监听地址 | `-l :9877`                |\n| `-f` | 同步间隔时间（秒） | `-f 600`                  |\n| `-c` | 自定义配置文件路径 | `-c /path/to/config.yaml` |\n| `-u`              | 升级当前 D-NET 版本 | `-u`                      |\n| `-noweb` | 不启动 Web 服务 | `-noweb`                  |\n| `-skipVerify` | 跳过 HTTPS 证书验证 | `-skipVerify`             |\n| `-dns` | 自定义 DNS 服务器 | `-dns 8.8.8.8`            |\n| `-dcdnCacheTimes` | 间隔 N 次与服务商比对 | `-dcdnCacheTimes 10`      |\n| `-resetPassword` | 重置密码 | `-resetPassword newpass`  |\n\n\u003e 更多使用参数，请查看 [Wiki 文档 - D‐NET 使用指南](https://github.com/cxbdasheng/dnet/wiki/D%E2%80%90NET-%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97#%E5%91%BD%E4%BB%A4%E5%8F%82%E6%95%B0)。\n\n**使用示例：**\n```bash\n# 自定义同步间隔和配置文件路径\n./dnet -s install -f 600 -c /path/to/config.yaml\n\n# 重置密码\n./dnet -resetPassword 123456\n```\n### 方式二：使用 Docker\n\n**Linux（推荐 Host 模式）：**\n```bash\ndocker run -d --name dnet --net=host -v /opt/dnet:/root --restart=always cxbdasheng/dnet:latest\n```\n\n**macOS / Windows（端口映射）：**\n```bash\ndocker run -d --name dnet -p 9877:9877 -v /opt/dnet:/root --restart=always cxbdasheng/dnet:latest\n```\n\n\u003e **说明：** Host 模式支持 IPv6 地址检测（仅 Linux）；**端口映射无法直接获取宿主机的网卡信息，可能无法检测 IPv6**。\n\n**常用命令：**\n```bash\n# 重置密码\ndocker exec dnet ./dnet -resetPassword 123456 \u0026\u0026 docker restart dnet\n\n# 查看日志\ndocker logs -f dnet\n```\n### 方式三：从源码构建\n```bash\nmake build                              # 构建当前平台\ngoreleaser build --snapshot --clean     # 构建所有平台\ngo run main.go                          # 直接运行\n```\n\n## Webhook 通知\n\n支持的变量：`#{serviceType}`（服务类型）、`#{serviceName}`（服务名称）、`#{serviceStatus}`（更新结果）\n\n\u003cdetails\u003e\n\u003csummary\u003e配置示例\u003c/summary\u003e\n\n**Server酱：**\n```\nhttps://sctapi.ftqq.com/[SendKey].send?title=DNET通知\u0026desp=#{serviceName} - #{serviceStatus}\n```\n\n**钉钉机器人：**\n```json\n{\n  \"msgtype\": \"markdown\",\n  \"markdown\": {\n    \"title\": \"DNET 通知\",\n    \"text\": \"#{serviceName} - #{serviceStatus}\"\n  }\n}\n```\n\u003c/details\u003e\n\n## 贡献与许可\n\n欢迎贡献代码或提出建议，详见 [贡献指南](CONTRIBUTING.md)。本项目采用 [MIT](LICENSE) 许可证。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxbdasheng%2Fdnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcxbdasheng%2Fdnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxbdasheng%2Fdnet/lists"}