# GitHub-IP-hosts **Repository Path**: UserRJZC/GitHub-IP-hosts ## Basic Information - **Project Name**: GitHub-IP-hosts - **Description**: https://github.com/ittuann/GitHub-IP-hosts - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-02-25 - **Last Updated**: 2026-02-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 📄 GitHub IP hosts [![GitHub Action][ci-image]][ci-url] [ci-image]: https://img.shields.io/github/actions/workflow/status/ittuann/GitHub-IP-hosts/workflow.yml?branch=main&label=Auto%20CI%20Status&logo=github&style=for-the-badge [ci-url]: https://github.com/ittuann/GitHub-IP-hosts/actions 通过使用 GitHub Actions CI 每周自动化维护最新的 hosts 文件,缓解中国大陆访问 GitHub 及其相关服务时遇到的网络抽风问题,改善诸如页面加载缓慢、网络连接不稳定、代码拉取失败、图片资源无法显示等等。 # 目录 - [🛠️ 使用方法](#️-使用方法) - [1. 复制下面的 hosts 内容](#1-复制下面的-hosts-内容) - [2. 将内容粘贴到系统 hosts 文件中](#2-将内容粘贴到系统-hosts-文件中) - [Windows 系统粘贴方法](#windows-系统粘贴方法) - [Linux 系统粘贴方法](#linux-系统粘贴方法) - [🔭 进阶使用](#-进阶使用) - 使用 [jsDelivr CDN](https://cdn.jsdelivr.net/gh/ittuann/GitHub-IP-hosts@main/hosts) 加速下载 hosts 文件 - 只记录单一 IP 的 [hosts_single](https://github.com/ittuann/GitHub-IP-hosts/blob/main/hosts_single) 文件 - 在本地/海外服务器自部署 - 默认返回所有响应中速度最快的 IP 地址 > [!TIP] > 点击页面右上角按钮***Star 🌟 关注这个仓库***,您将能在第一时间收到最新的数据和信息~ # 🛠️ 使用方法 使用方法仅需 2 步: 复制 [hosts](https://github.com/ittuann/GitHub-IP-hosts/blob/main/hosts) 文本 -> 将复制的文本粘贴至系统 hosts 文件 ## 1. 复制下面的 hosts 内容 ``` # GitHub IP hosts Start # Auto update time: 2026-02-23 12:09:43 UTC+08:00 # IP 可能会随时变化,为确保不错过重要更新,请前往 GitHub 项目页面 Star 这个仓库,以及时获取最新数据和信息 # GitHub URL: https://github.com/ittuann/GitHub-IP-hosts 140.82.114.25 alive.github.com 140.82.114.26 alive.github.com 140.82.113.6 api.github.com 140.82.116.5 api.github.com 185.199.108.133 avatars.githubusercontent.com 185.199.109.133 avatars.githubusercontent.com 185.199.110.133 avatars.githubusercontent.com 185.199.108.133 avatars0.githubusercontent.com 185.199.109.133 avatars0.githubusercontent.com 185.199.110.133 avatars0.githubusercontent.com 185.199.108.133 avatars1.githubusercontent.com 185.199.109.133 avatars1.githubusercontent.com 185.199.110.133 avatars1.githubusercontent.com 185.199.108.133 avatars2.githubusercontent.com 185.199.109.133 avatars2.githubusercontent.com 185.199.110.133 avatars2.githubusercontent.com 185.199.108.133 avatars3.githubusercontent.com 185.199.109.133 avatars3.githubusercontent.com 185.199.110.133 avatars3.githubusercontent.com 185.199.108.133 avatars4.githubusercontent.com 185.199.109.133 avatars4.githubusercontent.com 185.199.110.133 avatars4.githubusercontent.com 185.199.108.133 avatars5.githubusercontent.com 185.199.109.133 avatars5.githubusercontent.com 185.199.110.133 avatars5.githubusercontent.com 20.85.130.105 broker.actions.githubusercontent.com 185.199.108.133 camo.githubusercontent.com 185.199.109.133 camo.githubusercontent.com 185.199.110.133 camo.githubusercontent.com 140.82.112.22 central.github.com 140.82.113.21 central.github.com 185.199.108.133 cloud.githubusercontent.com 185.199.109.133 cloud.githubusercontent.com 185.199.110.133 cloud.githubusercontent.com 140.82.113.10 codeload.github.com 140.82.116.9 codeload.github.com 140.82.112.21 collector.github.com 140.82.113.21 collector.github.com 140.82.112.34 containers.pkg.github.com 140.82.116.34 containers.pkg.github.com 138.91.182.224 copilot-proxy.githubusercontent.com 13.107.5.93 default.exp-tas.com 140.82.113.22 dependabot-actions.githubapp.com 140.82.114.22 dependabot-actions.githubapp.com 185.199.108.133 desktop.githubusercontent.com 185.199.109.133 desktop.githubusercontent.com 185.199.110.133 desktop.githubusercontent.com 140.82.112.34 docker-proxy.pkg.github.com 140.82.116.33 docker-proxy.pkg.github.com 140.82.113.34 docker.pkg.github.com 140.82.116.33 docker.pkg.github.com 140.82.113.22 education.github.com 140.82.114.21 education.github.com 185.199.108.133 favicons.githubusercontent.com 185.199.109.133 favicons.githubusercontent.com 185.199.110.133 favicons.githubusercontent.com 140.82.114.22 fulcio.githubapp.com 140.82.113.34 ghcr.io 140.82.116.33 ghcr.io 140.82.114.3 gist.github.com 140.82.116.4 gist.github.com 185.199.108.154 github-cloud.githubusercontent.com 185.199.109.154 github-cloud.githubusercontent.com 185.199.110.154 github-cloud.githubusercontent.com 16.15.178.103 github-cloud.s3.amazonaws.com 16.15.183.113 github-cloud.s3.amazonaws.com 16.15.183.154 github-cloud.s3.amazonaws.com 16.15.180.61 github-com.s3.amazonaws.com 16.15.181.64 github-com.s3.amazonaws.com 16.15.186.158 github-com.s3.amazonaws.com 185.199.108.154 github-registry-files.githubusercontent.com 185.199.109.154 github-registry-files.githubusercontent.com 185.199.110.154 github-registry-files.githubusercontent.com 185.199.108.154 github-releases.githubusercontent.com 185.199.109.154 github-releases.githubusercontent.com 185.199.110.154 github-releases.githubusercontent.com 192.0.66.2 github.blog 140.82.114.3 github.com 140.82.116.4 github.com 140.82.112.18 github.community 140.82.113.17 github.community 20.99.227.183 github.dev 52.224.38.193 github.dev 151.101.1.194 github.global.ssl.fastly.net 151.101.129.194 github.global.ssl.fastly.net 151.101.193.194 github.global.ssl.fastly.net 185.199.108.153 github.io 185.199.109.153 github.io 185.199.110.153 github.io 185.199.108.133 github.map.fastly.net 185.199.109.133 github.map.fastly.net 185.199.110.133 github.map.fastly.net 140.82.112.17 githubcopilot.com 140.82.112.18 githubcopilot.com 140.82.113.17 githubcopilot.com 185.199.108.153 githubstatus.com 185.199.109.153 githubstatus.com 185.199.110.153 githubstatus.com 140.82.113.21 launch.actions.githubusercontent.com 140.82.114.22 launch.actions.githubusercontent.com 140.82.113.26 live.github.com 140.82.114.25 live.github.com 140.82.114.33 maven.pkg.github.com 140.82.116.34 maven.pkg.github.com 185.199.108.133 media.githubusercontent.com 185.199.109.133 media.githubusercontent.com 185.199.110.133 media.githubusercontent.com 20.22.118.40 mpsghub.actions.githubusercontent.com 140.82.112.33 npm-beta-proxy.pkg.github.com 140.82.116.33 npm-beta-proxy.pkg.github.com 140.82.113.33 npm-beta.pkg.github.com 140.82.116.33 npm-beta.pkg.github.com 140.82.112.33 npm-proxy.pkg.github.com 140.82.116.33 npm-proxy.pkg.github.com 140.82.114.34 npm.pkg.github.com 140.82.116.34 npm.pkg.github.com 20.60.7.132 npmregistryv2prod.blob.core.windows.net 140.82.112.33 nuget.pkg.github.com 140.82.116.34 nuget.pkg.github.com 140.82.114.21 objects-origin.githubusercontent.com 185.199.108.133 objects.githubusercontent.com 185.199.109.133 objects.githubusercontent.com 185.199.110.133 objects.githubusercontent.com 140.82.113.21 origin-tracker.githubusercontent.com 140.82.114.21 origin-tracker.githubusercontent.com 13.107.42.16 pipelines.actions.githubusercontent.com 20.242.179.206 pipelinesghubeus1.actions.githubusercontent.com 185.199.108.154 pkg-containers.githubusercontent.com 185.199.109.154 pkg-containers.githubusercontent.com 185.199.110.154 pkg-containers.githubusercontent.com 185.199.108.154 pkg.actions.githubusercontent.com 185.199.109.154 pkg.actions.githubusercontent.com 185.199.110.154 pkg.actions.githubusercontent.com 140.82.113.33 pkg.github.com 140.82.116.33 pkg.github.com 20.209.226.1 productionresultssa1.blob.core.windows.net 20.209.226.129 productionresultssa1.blob.core.windows.net 20.209.227.33 productionresultssa1.blob.core.windows.net 140.82.113.33 pypi.pkg.github.com 140.82.116.33 pypi.pkg.github.com 185.199.108.133 raw.githubusercontent.com 185.199.109.133 raw.githubusercontent.com 185.199.110.133 raw.githubusercontent.com 185.199.108.133 release-assets.githubusercontent.com 185.199.109.133 release-assets.githubusercontent.com 185.199.110.133 release-assets.githubusercontent.com 140.82.114.21 results-receiver.actions.githubusercontent.com 140.82.114.34 rubygems.pkg.github.com 140.82.116.33 rubygems.pkg.github.com 20.85.130.105 run-actions-1-azure-eastus.actions.githubusercontent.com 140.82.112.22 runner-auth.actions.githubusercontent.com 140.82.114.22 runner-auth.actions.githubusercontent.com 40.88.240.168 runnerghubeus1.actions.githubusercontent.com 13.107.213.57 setup-tools.actions.githubusercontent.com 13.107.213.66 setup-tools.actions.githubusercontent.com 13.107.246.57 setup-tools.actions.githubusercontent.com 140.82.113.34 swift.pkg.github.com 140.82.116.34 swift.pkg.github.com 140.82.112.22 timestamp.githubapp.com 140.82.114.21 timestamp.githubapp.com 20.85.108.33 tokenghub.actions.githubusercontent.com 185.199.108.153 tuf-repo.github.com 185.199.109.153 tuf-repo.github.com 185.199.110.153 tuf-repo.github.com 185.199.108.133 user-images.githubusercontent.com 185.199.109.133 user-images.githubusercontent.com 185.199.110.133 user-images.githubusercontent.com 150.171.73.16 visualstudio.com 150.171.74.16 visualstudio.com 13.107.42.16 vstoken.actions.githubusercontent.com # GitHub IP hosts End ``` ## 2. 将内容粘贴到系统 hosts 文件中 ### Windows 系统粘贴方法 1. 在搜索框中输入`记事本`,右键选择`以管理员身份运行`打开记事本。 2. 在记事本中依次点击`文件` -> `打开` 3. 将弹出框右下角的文件类型从`文本文档(*.txt)`改为`所有文件(*.*)` 4. 前往路径: `C:\Windows\System32\drivers\etc`,然后选择`hosts`文件即可开始编辑 5. 将复制的内容直接粘贴到文件末尾,保存即可 大部分情况下无需手动刷新 DNS,如未生效可在 CMD / PowerShell 中执行`ipconfig /flushdns` ### Linux 系统粘贴方法 在终端中执行 `sudoedit /etc/hosts`,然后将复制的内容直接粘贴到文件末尾,保存即可。 # 🔭 进阶使用 1. 项目默认支持返回所有响应中速度最快的 IP 地址。 2. 使用只记录单一 IP 的 hosts 文件: 复制项目内的 [hosts_single](https://github.com/ittuann/GitHub-IP-hosts/blob/main/hosts_single) 文件内容即可。 3. 在本地/海外服务器自部署项目: 在项目根目录使用终端执行 `make` 命令即可。 4. 直接查看 raw file [hosts](https://raw.githubusercontent.com/ittuann/GitHub-IP-hosts/main/hosts) 5. 使用 jsDelivr CDN 加速下载 [hosts](https://cdn.jsdelivr.net/gh/ittuann/GitHub-IP-hosts@main/hosts) & [hosts_single](https://cdn.jsdelivr.net/gh/ittuann/GitHub-IP-hosts@main/hosts_single) 文件: - `https://cdn.jsdelivr.net/gh/ittuann/GitHub-IP-hosts@main/hosts` - `https://fastly.jsdelivr.net/gh/ittuann/GitHub-IP-hosts@main/hosts` - `https://testingcf.jsdelivr.net/gh/ittuann/GitHub-IP-hosts@main/hosts` - `https://gcore.jsdelivr.net/gh/ittuann/GitHub-IP-hosts@main/hosts` 6. 通过 [SwitchHosts](https://github.com/oldj/SwitchHosts) 工具自动更新 hosts 文件。 7. 完整的 workflows 工作流请参考 [GitHub Actions](https://github.com/ittuann/GitHub-IP-hosts/actions) 的 CI/CD 配置。