{"id":18319878,"url":"https://github.com/bitwalker/synchosts","last_synced_at":"2025-07-28T05:05:29.734Z","repository":{"id":7786892,"uuid":"9156835","full_name":"bitwalker/synchosts","owner":"bitwalker","description":"Use Parallels to host your Windows dev environment? Ever get sick of manually updating your hosts file? Well have I got a deal for you..","archived":false,"fork":false,"pushed_at":"2013-05-23T17:16:11.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T14:23:04.784Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitwalker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-01T21:47:40.000Z","updated_at":"2014-01-18T23:50:46.000Z","dependencies_parsed_at":"2022-09-19T02:42:50.479Z","dependency_job_id":null,"html_url":"https://github.com/bitwalker/synchosts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitwalker/synchosts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2Fsynchosts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2Fsynchosts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2Fsynchosts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2Fsynchosts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitwalker","download_url":"https://codeload.github.com/bitwalker/synchosts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitwalker%2Fsynchosts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267464522,"owners_count":24091505,"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-07-28T02:00:09.689Z","response_time":68,"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":[],"created_at":"2024-11-05T18:14:34.148Z","updated_at":"2025-07-28T05:05:29.710Z","avatar_url":"https://github.com/bitwalker.png","language":"Python","readme":"# synchosts.py\n\nThis simple script will update /etc/hosts entries that contain *.local or local.* hostnames\nby pulling the IP address of a specified VM host.\n\n## Why?\n\nIf you are a Windows dev hosting your dev environment in Parallels while working in OSX, then\nyou likely host applications in IIS on your host and work from OSX. In order for this setup to\nwork, you probably also have been manually updating /etc/hosts periodically when your VM's IP\nchanges. Why do this by hand when you can do it automagically!\n\n## How it works\n\nThis script uses the Parallels SDK to query the local VM library for the specified VM, accesses\nit's list of adapters, and extracts an IPv4 address from the adapter's current network information.\nThat IP is then used to generate a new hosts file where all *.local and local.* host entries point\nto the new IP address. It then uses `sudo mv` to overwrite the current hosts file, which requires\nyou to provide your credentials.\n\n## Changes\n\nIf you have a creative way of making this work better, spotted a bug or three, or just want to expand\nit's capabilities, fork and shoot me a pull request. Thanks!\n\n## License\n\nThis is released under my super special \"I really could care less what you do with this\" license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitwalker%2Fsynchosts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitwalker%2Fsynchosts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitwalker%2Fsynchosts/lists"}