{"id":24839121,"url":"https://github.com/winand/zeroconf-local-hostnames","last_synced_at":"2026-05-02T23:41:54.470Z","repository":{"id":181973330,"uuid":"629174059","full_name":"Winand/zeroconf-local-hostnames","owner":"Winand","description":"Resolve any hostname in .local to 127.0.0.1","archived":false,"fork":false,"pushed_at":"2023-07-18T08:05:29.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T04:34:55.029Z","etag":null,"topics":["dns","docker","docker-compose","hostnames","localhost","mdns","zeroconf"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Winand.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}},"created_at":"2023-04-17T19:23:35.000Z","updated_at":"2023-04-17T19:32:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f1398c2-d0b5-4f6b-b890-6f1811e1573f","html_url":"https://github.com/Winand/zeroconf-local-hostnames","commit_stats":null,"previous_names":["winand/zeroconf-local-hostnames"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Winand/zeroconf-local-hostnames","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Winand%2Fzeroconf-local-hostnames","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Winand%2Fzeroconf-local-hostnames/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Winand%2Fzeroconf-local-hostnames/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Winand%2Fzeroconf-local-hostnames/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Winand","download_url":"https://codeload.github.com/Winand/zeroconf-local-hostnames/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Winand%2Fzeroconf-local-hostnames/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274935979,"owners_count":25376836,"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-13T02:00:10.085Z","response_time":70,"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":["dns","docker","docker-compose","hostnames","localhost","mdns","zeroconf"],"created_at":"2025-01-31T06:36:47.064Z","updated_at":"2026-05-02T23:41:49.437Z","avatar_url":"https://github.com/Winand.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Local hostnames for Docker on Windows\nThis script allows to register any *.local hostname using [Zeroconf](https://en.wikipedia.org/wiki/Zero-configuration_networking).\nUnder the hood it uses [python-zeroconf](https://github.com/python-zeroconf/python-zeroconf) library to announce \"fake\" services\nwith given hostnames. This approach allows to add new hostnames without modifying `hosts` file.\n\nNote: Windows can resolve hostnames even if \".local\" top level domain isn't specified.\n\nThe main purpose of the script is to connect to Docker containers by hostname from applications on the host OS.\nThe script can collect hostnames from `docker-compose.yml` files.\n\nNote: You also need to [map ports](https://docs.docker.com/compose/compose-file/compose-file-v3/#ports) to be able to actually connect to your container.\n\n## Config\nConfiguration is read from `config.yml` file:\n* `interface` (string) - specifies which interface to use to announce services (hostnames).\nBy default WSL2 interface is used.\n* `docker-compose-paths` (list) - docker-compose files to collect hostnames from.\nDocker service names are registered along with names in `container_name` and `hostname` fields if specified.\n* `hostnames` (list) - list of hostnames to register.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinand%2Fzeroconf-local-hostnames","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinand%2Fzeroconf-local-hostnames","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinand%2Fzeroconf-local-hostnames/lists"}