{"id":13451710,"url":"https://github.com/cbednarski/hostess","last_synced_at":"2025-10-21T04:52:07.721Z","repository":{"id":25944220,"uuid":"29385745","full_name":"cbednarski/hostess","owner":"cbednarski","description":"An idempotent command-line utility for managing your /etc/hosts file.","archived":false,"fork":false,"pushed_at":"2020-05-02T04:03:39.000Z","size":203,"stargazers_count":878,"open_issues_count":12,"forks_count":39,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-10-16T22:35:59.888Z","etag":null,"topics":["cli","dns"],"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/cbednarski.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-01-17T08:57:53.000Z","updated_at":"2025-10-13T20:55:28.000Z","dependencies_parsed_at":"2022-08-07T11:16:11.502Z","dependency_job_id":null,"html_url":"https://github.com/cbednarski/hostess","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/cbednarski/hostess","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbednarski%2Fhostess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbednarski%2Fhostess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbednarski%2Fhostess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbednarski%2Fhostess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbednarski","download_url":"https://codeload.github.com/cbednarski/hostess/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbednarski%2Fhostess/sbom","scorecard":{"id":268472,"data":{"date":"2025-08-11","repo":{"name":"github.com/cbednarski/hostess","commit":"187298f216f228a4358989c4e21a21ffe306afff"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.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":"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":"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":"Code-Review","score":0,"reason":"Found 1/29 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":"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":"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":"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":"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.5.2 not signed: https://api.github.com/repos/cbednarski/hostess/releases/24492541","Warn: release artifact v0.5.1 not signed: https://api.github.com/repos/cbednarski/hostess/releases/24397232","Warn: release artifact v0.5.0 not signed: https://api.github.com/repos/cbednarski/hostess/releases/24319581","Warn: release artifact v0.4.1 not signed: https://api.github.com/repos/cbednarski/hostess/releases/24319616","Warn: release artifact v0.4.0 not signed: https://api.github.com/repos/cbednarski/hostess/releases/24319602","Warn: release artifact v0.5.2 does not have provenance: https://api.github.com/repos/cbednarski/hostess/releases/24492541","Warn: release artifact v0.5.1 does not have provenance: https://api.github.com/repos/cbednarski/hostess/releases/24397232","Warn: release artifact v0.5.0 does not have provenance: https://api.github.com/repos/cbednarski/hostess/releases/24319581","Warn: release artifact v0.4.1 does not have provenance: https://api.github.com/repos/cbednarski/hostess/releases/24319616","Warn: release artifact v0.4.0 does not have provenance: https://api.github.com/repos/cbednarski/hostess/releases/24319602"],"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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-17T12:46:31.302Z","repository_id":25944220,"created_at":"2025-08-17T12:46:31.302Z","updated_at":"2025-08-17T12:46:31.302Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280207189,"owners_count":26290616,"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-10-21T02:00:06.614Z","response_time":58,"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":["cli","dns"],"created_at":"2024-07-31T07:00:59.912Z","updated_at":"2025-10-21T04:52:07.688Z","avatar_url":"https://github.com/cbednarski.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# hostess [![Linux Build Status](https://travis-ci.org/cbednarski/hostess.svg)](https://travis-ci.org/cbednarski/hostess) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/wtxqb880b7v9dfgn/branch/master?svg=true)](https://ci.appveyor.com/project/cbednarski/hostess/branch/master) [![GoDoc](https://godoc.org/github.com/cbednarski/hostess?status.svg)](http://godoc.org/github.com/cbednarski/hostess)\n\nAn **idempotent** command-line utility for managing your `/etc/hosts`* file.\n\n    hostess add local.example.com 127.0.0.1\n    hostess add staging.example.com 10.0.2.16\n\nWhy? Because you edit `/etc/hosts` for development, testing, and debugging.\nBecause sometimes DNS doesn't work in production. And because editing\n`/etc/hosts` by hand is a pain. Put hostess in your `Makefile` or deploy scripts\nand call it a day.\n\n\\* And `C:\\Windows\\System32\\drivers\\etc\\hosts` on Windows.\n\n**Note: 0.4.0 has backwards incompatible changes in the API and CLI.** See\n`CHANGELOG.md` for details.\n\n## Installation\n\nDownload a [precompiled release](https://github.com/cbednarski/hostess/releases)\nfrom GitHub, or build from source (with a [recent version of Go](https://golang.org/dl)):\n\n    git clone https://github.com/cbednarski/hostess\n    cd hostess\n    make install\n\n## Usage\n\nRun `hostess` or `hostess -h` to see a full list of commands.\n\n**Note** The hosts file is protected. On unixes you will need to use `sudo` or\nrun the `hostess` command as root. On Windows, you will need to run `hostess`\nfrom an elevated prompt (right click and _Run as administrator_).\n\n## Format\n\nOn unixes, hostess follows the format specified by `man hosts`, with one line\nper IP address:\n\n    127.0.0.1 localhost hostname2 hostname3\n    127.0.1.1 machine.name\n    # 10.10.20.30 some.host\n\nOn Windows, hostess writes each hostname on its own line.\n\n    127.0.0.1 localhost\n    127.0.0.1 hostname2\n    127.0.0.1 hostname3\n\n## Configuration\n\nhostess may be configured via environment variables.\n\n- `HOSTESS_FMT` may be set to `windows` or `unix` to override platform detection\n  for the hosts file format. See Behavior, above, for details\n\n- `HOSTESS_PATH` may be set to override platform detection for the location of\n  the hosts file. By default this is `C:\\Windows\\System32\\drivers\\etc\\hosts` on\n  Windows and `/etc/hosts` everywhere else.\n\n## IPv4 and IPv6\n\nIt's possible for your hosts file to include overlapping entries for IPv4 and\nIPv6. This is an uncommon case so the CLI ignores this distinction. The hostess\nlibrary includes logic that differentiates between these cases.\n\n## Contributing\n\nI hope my software is useful, readable, fun to use, and helps you learn\nsomething new. I maintain this software in my spare time. I rarely merge PRs\nbecause I am both lazy and a snob. Bug reports, fixes, questions, and comments\nare welcome but expect a delayed response. No refunds. 👻\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbednarski%2Fhostess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbednarski%2Fhostess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbednarski%2Fhostess/lists"}