{"id":13582297,"url":"https://github.com/oz123/coredns-netbox-plugin","last_synced_at":"2025-09-09T14:10:08.884Z","repository":{"id":37399298,"uuid":"275577440","full_name":"oz123/coredns-netbox-plugin","owner":"oz123","description":"A coredns plugin to get dns records from Netbox","archived":false,"fork":false,"pushed_at":"2025-02-07T13:28:07.000Z","size":474,"stargazers_count":68,"open_issues_count":5,"forks_count":26,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-24T20:06:52.040Z","etag":null,"topics":["coredns","coredns-plugin","hacktoberfest","netbox"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oz123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"oz123","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2020-06-28T12:11:03.000Z","updated_at":"2025-04-29T15:14:21.000Z","dependencies_parsed_at":"2024-01-07T05:10:41.869Z","dependency_job_id":"5f1fa7e9-6123-427a-abe5-ecf9aa5bc210","html_url":"https://github.com/oz123/coredns-netbox-plugin","commit_stats":{"total_commits":89,"total_committers":6,"mean_commits":"14.833333333333334","dds":0.348314606741573,"last_synced_commit":"7a648fe3fa78240f425e057e6547daffc07e6cf6"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/oz123/coredns-netbox-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oz123%2Fcoredns-netbox-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oz123%2Fcoredns-netbox-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oz123%2Fcoredns-netbox-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oz123%2Fcoredns-netbox-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oz123","download_url":"https://codeload.github.com/oz123/coredns-netbox-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oz123%2Fcoredns-netbox-plugin/sbom","scorecard":{"id":716179,"data":{"date":"2025-08-11","repo":{"name":"github.com/oz123/coredns-netbox-plugin","commit":"81715e216c47a248110adffbf75e4e2937476a06"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.5,"checks":[{"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: topLevel 'contents' permission set to 'read': .github/workflows/go.yml:10","Info: no jobLevel write permissions found"],"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":"Code-Review","score":3,"reason":"Found 5/16 approved changesets -- score normalized to 3","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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/oz123/coredns-netbox-plugin/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/oz123/coredns-netbox-plugin/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/oz123/coredns-netbox-plugin/go.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/oz123/coredns-netbox-plugin/go.yml/master?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"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":"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: Apache License 2.0: 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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 19 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":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-3130 / GHSA-hfmw-7g3m-gj6q","Warn: Project is vulnerable to: GO-2024-3134 / GHSA-h92q-fgpp-qhrq","Warn: Project is vulnerable to: GO-2024-2785 / GHSA-m9w6-wp3h-vq8g","Warn: Project is vulnerable to: GO-2025-3743 / GHSA-cvx7-x8pj-x2gw","Warn: Project is vulnerable to: GHSA-ch7v-37xg-75ph","Warn: Project is vulnerable to: GHSA-h828-v5pv-33qx"],"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-22T09:43:47.846Z","repository_id":37399298,"created_at":"2025-08-22T09:43:47.846Z","updated_at":"2025-08-22T09:43:47.846Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274308293,"owners_count":25261221,"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-09-09T02:00:10.223Z","response_time":80,"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":["coredns","coredns-plugin","hacktoberfest","netbox"],"created_at":"2024-08-01T15:02:34.919Z","updated_at":"2025-09-09T14:10:08.853Z","avatar_url":"https://github.com/oz123.png","language":"Go","funding_links":["https://github.com/sponsors/oz123"],"categories":["Archived","Go"],"sub_categories":[],"readme":"# coredns-netbox-plugin\n\nThis plugin gets an A record from NetBox[1]. It uses the REST API of netbox\nto ask for a an IP address of a hostname:\n\n```\ncurl https://netbox.example.org/api/ipam/ip-addresses/?dns_name=example-vm-host\n\n{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"family\": {\n                \"value\": 4,\n                \"label\": \"IPv4\"\n            },\n            \"address\": \"192.168.1.101/25\",\n            \"interface\": {\n                \"id\": 452,\n                \"url\": \"https://netbox.example.org/api/virtualization/interfaces/452/\",\n                \"virtual_machine\": {\n                    \"url\": \"https://netbox.example.org/api/virtualization/virtual-machines/10/\",\n                },\n            },\n        }\n    ]\n}\n```\n\n## Enabling\n\nTo activate the *netbox* plugin you need to compile CoreDNS with the plugin added\nto `plugin.cfg`\n\n```\nnetbox:github.com/oz123/coredns-netbox-plugin\n```\n\n### Ordering in plugin.cfg\n\nThe ordering of plugins in the `plugin.cfg` file is important to ensure you\nget the behaviour you expect when using multiple plugins in a\n[Corefile server block][2].\n\nFor example, in order to utilise the native cache plugin, ensure that you add\nthe *netbox* plugin _after_ `cache:cache` but _before_ any plugins you want to\nbe able to fall-through to (eg `file:file` or `forward:forward`).\n\n## Syntax\n\n```\nnetbox [ZONES...] {\n  token TOKEN\n  url URL\n  tls CERT KEY CACERT\n  fallthrough [ZONES...]\n}\n```\n\n* **ZONES** zones that the *netbox* should be authoritative for.\n* `token` **TOKEN** sets the API token used to authenticate against NetBox\n  (**REQUIRED**).\n* `url` **URL** defines the URL *netbox* should query. This URL must be\n  specified in full as `SCHEME://HOST/api/ipam/ip-addresses` (**REQUIRED**).\n* `tls` is followed by:\n  * no arguments, if the server certificate is signed by a system-installed\n    CA and no client cert is needed (this is the default if HTTPS is used).\n  * a single argument that is the CA PEM file, if the server cert is not\n    signed by a system CA and no client cert is needed.\n  * two arguments - path to cert PEM file, the path to private key PEM file -\n    if the server certificate is signed by a system-installed CA and a client\n    certificate is needed.\n  * three arguments - path to cert PEM file, path to client private key PEM\n    file, path to CA PEM file - if the server certificate is not signed by a\n    system-installed CA and client certificate is needed.\n  \n  These options set certificate verification method for the NetBox server if\n  HTTPS is used to access the API.\n\n* `ttl` **DURATION** defines the TTL of records returned from *netbox*. Default\n  is 1h (3600s).\n* `timeout` **DURATION** defines the HTTP timeout for API requests against\n  NetBox. Default is 5s.\n* `fallthrough` If a zone matches but no record can be generated, pass request\nto the next plugin. If **[ZONES…]** is omitted, then fallthrough happens for\nall zones for which the plugin is authoritative. If specific zones are listed\nthen only queries for those zones will be subject to fallthrough.\n\nThe config parameters `token`, `url` and `localCacheDuration` are required.\n\n## Examples\n\nSend all requests to NetBox:\n\n```\n. {\n    netbox {\n        token SuperSecretNetBoxAPIToken\n        url https://netbox.example.org/api/ipam/ip-addresses\n    }\n}\n```\n\nSend requests within `example.org` to NetBox and fall-through to the `file`\nplugin in order to respond to unsupported record types (ie `SOA`, `NS` etc):\n\n```\n. {\n    netbox example.org {\n        token SuperSecretNetBoxAPIToken\n        url https://netbox.example.org/api/ipam/ip-addresses\n        fallthrough\n    }\n    file db.example.org\n}\n\n```\n\nHandle all requests with *netbox* and fall-through to the `forward`\nplugin for requests within `example.org` with caching via the `cache` plugin:\n\n```\n. {\n    netbox {\n        token SuperSecretNetBoxAPIToken\n        url https://netbox.example.org/api/ipam/ip-addresses\n        fallthrough example.org\n    }\n    forward . 1.1.1.1 1.0.0.1\n    cache\n}\n```\n\n## Changelog\n\n0.2 - Cleanup add IPv6 support\n \n * Refactor query.go\n * Add tests for IPv6\n * Enable IPv6 in ``query.go``\n\n0.1 - Initial Naive release\n\n * Got it somehow working \n * Gather feedback\n## Developing locally\n\nYou can test the plugin functionallity with CoreDNS by adding the following to\n`go.mod` in the source code directory of coredns.\n\n```\nreplace github.com/oz123/coredns-netbox-plugin =\u003e \u003cpath-to-you-local-copy\u003e/coredns-netbox-plugin\n```\n\nTesting against a remote instance of netbox is possible with SSH port forwarding:\n\n```\nHost YourHost\n   Hostname 10.0.0.91\n   ProxyJump YourJumpHost\n   LocalForward 18443 192.168.1.128:8443\n```\n\n## Credits\n\nThis plugin is heavily based on the code of the redis-plugin for CoreDNS.\n\n\n[1]: https://netbox.readthedocs.io/en/stable/\n[2]: https://coredns.io/manual/toc/#server-blocks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foz123%2Fcoredns-netbox-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foz123%2Fcoredns-netbox-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foz123%2Fcoredns-netbox-plugin/lists"}