{"id":43379133,"url":"https://github.com/libdns/dnspod","last_synced_at":"2026-02-02T07:45:23.658Z","repository":{"id":54685167,"uuid":"282287836","full_name":"libdns/dnspod","owner":"libdns","description":"DNSPod provider implementation for libdns interfaces","archived":false,"fork":false,"pushed_at":"2021-08-05T03:18:17.000Z","size":7,"stargazers_count":5,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-18T18:50:39.788Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/libdns.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}},"created_at":"2020-07-24T18:15:00.000Z","updated_at":"2021-11-08T06:37:43.000Z","dependencies_parsed_at":"2022-08-14T00:00:36.595Z","dependency_job_id":null,"html_url":"https://github.com/libdns/dnspod","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/libdns/dnspod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fdnspod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fdnspod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fdnspod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fdnspod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libdns","download_url":"https://codeload.github.com/libdns/dnspod/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fdnspod/sbom","scorecard":{"id":587831,"data":{"date":"2025-08-11","repo":{"name":"github.com/libdns/dnspod","commit":"60257e5a784d62d5a2fb0878da25372533315fba"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":5,"reason":"Found 2/4 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T21:03:20.028Z","repository_id":54685167,"created_at":"2025-08-20T21:03:20.028Z","updated_at":"2025-08-20T21:03:20.028Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29007316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T06:37:10.400Z","status":"ssl_error","status_checked_at":"2026-02-02T06:37:09.383Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-02-02T07:45:23.035Z","updated_at":"2026-02-02T07:45:23.653Z","avatar_url":"https://github.com/libdns.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DNSPOD for `libdns`\n\n[![godoc reference](https://img.shields.io/badge/godoc-reference-blue.svg)](https://pkg.go.dev/github.com/libdns/dnspod)\n\nThis package implements the libdns interfaces for the [DNSPOD API](https://www.dnspod.cn/docs/index.html) (using the Go implementation from: https://github.com/nrdcg/dnspod-go)\n\n## Authenticating\n\nTo authenticate you need to supply a [DNSPOD API token](https://support.dnspod.cn/Kb/showarticle/tsid/227/).\n\n## Example\n\nHere's a minimal example of how to get all your DNS records using this `libdns` provider (see `_example/main.go`)\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"os\"\n\t\"time\"\n\n\tdnspod \"github.com/libdns/dnspod\"\n\n\t\"github.com/libdns/libdns\"\n)\n\nfunc main() {\n\ttoken := os.Getenv(\"DNSPOD_TOKEN\")\n\tif token == \"\" {\n\t\tfmt.Printf(\"DNSPOD_TOKEN not set\\n\")\n\t\treturn\n\t}\n\tzone := os.Getenv(\"ZONE\")\n\tif zone == \"\" {\n\t\tfmt.Printf(\"ZONE not set\\n\")\n\t\treturn\n\t}\n\tprovider := dnspod.Provider{APIToken: token}\n\n\trecords, err := provider.GetRecords(context.TODO(), zone)\n\tif err != nil {\n\t\tfmt.Printf(\"ERROR: %s\\n\", err.Error())\n\t}\n\n\ttestName := \"libdns-test\"\n\ttestID := \"\"\n\tfor _, record := range records {\n\t\tfmt.Printf(\"%s (.%s): %s, %s\\n\", record.Name, zone, record.Value, record.Type)\n\t\tif record.Name == testName {\n\t\t\ttestID = record.ID\n\t\t}\n\n\t}\n\n\tif testID != \"\" {\n\t\t// fmt.Printf(\"Delete entry for %s (id:%s)\\n\", testName, testID)\n\t\t// _, err = provider.DeleteRecords(context.TODO(), zone, []libdns.Record{libdns.Record{\n\t\t// \tID: testID,\n\t\t// }})\n\t\t// if err != nil {\n\t\t// \tfmt.Printf(\"ERROR: %s\\n\", err.Error())\n\t\t// }\n\t\t// Set only works if we have a record.ID\n\t\tfmt.Printf(\"Replacing entry for %s\\n\", testName)\n\t\t_, err = provider.SetRecords(context.TODO(), zone, []libdns.Record{libdns.Record{\n\t\t\tType:  \"TXT\",\n\t\t\tName:  testName,\n\t\t\tValue: fmt.Sprintf(\"Replacement test entry created by libdns %s\", time.Now()),\n\t\t\tTTL:   time.Duration(600) * time.Second,\n\t\t\tID:    testID,\n\t\t}})\n\t\tif err != nil {\n\t\t\tfmt.Printf(\"ERROR: %s\\n\", err.Error())\n\t\t}\n\t} else {\n\t\tfmt.Printf(\"Creating new entry for %s\\n\", testName)\n\t\t_, err = provider.AppendRecords(context.TODO(), zone, []libdns.Record{libdns.Record{\n\t\t\tType:  \"TXT\",\n\t\t\tName:  testName,\n\t\t\tValue: fmt.Sprintf(\"This is a test entry created by libdns %s\", time.Now()),\n\t\t\tTTL:   time.Duration(600) * time.Second,\n\t\t}})\n\t\tif err != nil {\n\t\t\tfmt.Printf(\"ERROR: %s\\n\", err.Error())\n\t\t}\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibdns%2Fdnspod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibdns%2Fdnspod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibdns%2Fdnspod/lists"}