{"id":23591463,"url":"https://github.com/dvob/nss-xhosts","last_synced_at":"2025-11-04T06:30:30.271Z","repository":{"id":113329306,"uuid":"406917013","full_name":"dvob/nss-xhosts","owner":"dvob","description":"NSS Module which supports wildcards","archived":false,"fork":false,"pushed_at":"2023-12-30T20:15:16.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-16T10:45:30.620Z","etag":null,"topics":["dns","etc-hosts","module","nss","nsswitch","wildcard"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/dvob.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-09-15T20:34:13.000Z","updated_at":"2023-12-30T20:15:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ea78b44-0318-4206-8db7-3af403f24dc2","html_url":"https://github.com/dvob/nss-xhosts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvob%2Fnss-xhosts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvob%2Fnss-xhosts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvob%2Fnss-xhosts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvob%2Fnss-xhosts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dvob","download_url":"https://codeload.github.com/dvob/nss-xhosts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239426204,"owners_count":19636534,"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","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":["dns","etc-hosts","module","nss","nsswitch","wildcard"],"created_at":"2024-12-27T07:39:09.140Z","updated_at":"2025-11-04T06:30:30.226Z","avatar_url":"https://github.com/dvob.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xhosts\n`xhosts` is a NSS module which resolves host names. It is similar to the default `files` module which reads records from `/etc/hosts` but it allows to configure wildcard records.\n\n## Example\n* `/etc/xhosts`\n```\n# local k8s test\n*.cluster.local 172.18.0.2\n\n# other entry\nother.foo.com 192.168.1.1\n```\n\n## Installation\n* Build the code and install the shard library libnss_xhosts.so.2 in your library path:\n```\n./install.sh\n```\n\n* Add `xhosts` to your `hosts` configuration in  `/etc/nsswitch.conf`:\n```\nhosts:          files xhosts dns\n```\n\n* Create the file `/etc/xhosts` and add your records:\n```\n*.cluster.local 172.18.0.2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvob%2Fnss-xhosts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvob%2Fnss-xhosts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvob%2Fnss-xhosts/lists"}