{"id":34582870,"url":"https://github.com/brodyhoskins/dns-sniper","last_synced_at":"2026-05-24T13:34:49.767Z","repository":{"id":40386435,"uuid":"286367323","full_name":"brodyhoskins/dns-sniper","owner":"brodyhoskins","description":"Combine DNS blacklists into desired configuration format","archived":false,"fork":false,"pushed_at":"2023-03-14T13:57:29.000Z","size":62,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-25T21:54:45.457Z","etag":null,"topics":["adblocking","adblocking-dns","dns","ruby","ruby-gem"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/brodyhoskins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-10T03:32:12.000Z","updated_at":"2022-01-27T02:19:03.000Z","dependencies_parsed_at":"2023-01-31T03:31:48.468Z","dependency_job_id":null,"html_url":"https://github.com/brodyhoskins/dns-sniper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brodyhoskins/dns-sniper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brodyhoskins%2Fdns-sniper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brodyhoskins%2Fdns-sniper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brodyhoskins%2Fdns-sniper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brodyhoskins%2Fdns-sniper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brodyhoskins","download_url":"https://codeload.github.com/brodyhoskins/dns-sniper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brodyhoskins%2Fdns-sniper/sbom","scorecard":{"id":254382,"data":{"date":"2025-08-11","repo":{"name":"github.com/brodyhoskins/dns-sniper","commit":"18fcc0db41ad0a4ad30426a92dea9eec206c4584"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: MIT-LICENSE:0","Info: FSF or OSI recognized license: MIT License: MIT-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":"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":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-cr5q-6q9f-rq6q","Warn: Project is vulnerable to: GHSA-j6gc-792m-qgm2","Warn: Project is vulnerable to: GHSA-pj73-v5mw-pm9j"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 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"}}]},"last_synced_at":"2025-08-17T09:16:44.134Z","repository_id":40386435,"created_at":"2025-08-17T09:16:44.134Z","updated_at":"2025-08-17T09:16:44.134Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33436554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-24T13:13:05.286Z","status":"ssl_error","status_checked_at":"2026-05-24T13:13:03.728Z","response_time":57,"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":["adblocking","adblocking-dns","dns","ruby","ruby-gem"],"created_at":"2025-12-24T10:21:33.116Z","updated_at":"2026-05-24T13:34:49.762Z","avatar_url":"https://github.com/brodyhoskins.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dns-sniper\n\ndns-sniper is a command line utility that combines online DNS blacklists and combines them into the desired configuration format.\n\n## Supported Formats\n\n### Input formats\n\n* HOSTS\n* plaintext (hostnames as newline-seperated list)\n\n### Output formats\n\n* bind 8\n* dnsmasq\n* HOSTS\n* plaintext (hostnames as newline-seperated list)\n* unbound\n\n## Installation\n\nUsing bundler, add to the `Gemfile`:\n\n```ruby\ngem 'dns-sniper'\n```\n\nOr standalone:\n\n```\n$ gem install dns-sniper\n```\n\n## Sample Usage\n\n### From within Ruby\n\n```ruby\nrequire 'dns-sniper'\n\nhostnames = DNSSniper::Hostnames.new\n\n# Manually add blacklisted or whitelisted domains\nhostnames.blacklist += 'ads.yahoo.com'\nhostnames.whitelist += 'favoritewebsite.com'\n\n# Use an Importer to process external lists\nhostnames.blacklist += DNSSniper::DomainsImporter.new('https://raw.githubusercontent.com/brodyhoskins/dns-blocklists/master/tracking.list').hostnames\nhostnames.blacklist += DNSSniper::HostsImporter.new('https://pgl.yoyo.org/as/serverlist.php?hostformat=hosts;showintro=0;mimetype=plaintext').hostnames\n\n# Blocklist is accessible as an Array\nhostnames.blocklist\n\n# List available formats\nDNSSniper::Exporters.all\n\n# Convert to desired format\nhostnames.to_unbound\n```\n\n### From CLI\n\nSee `dns-sniper --help`\n\nUsing the CLI version makes it easy to update configuration formats automatically. For example:\n\n```bash\n#!/usr/bin/env bash\n\n/path/to/dns-sniper --conf ~/.config/dns-sniper/dns-sniper.yml --output unbound \u003e /etc/unbound/unbound.conf.d/blocklist.conf\nservice unbound reload\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrodyhoskins%2Fdns-sniper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrodyhoskins%2Fdns-sniper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrodyhoskins%2Fdns-sniper/lists"}