MAC无法 ping 通github 系列主页

检索能够解析github.com的ip

https://tool.chinaz.com/speedworld/github.com

从列表中选总解析时间最快的ip地址:

复制ip地址作为github.com路由转发表

shell 复制代码
sudo vim /etc/hosts
shell 复制代码
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
20.200.245.247 github.com

输入:q!保存后退出编辑器;

刷新DNS,键入以下命令

shell 复制代码
dscacheutil -flushcache
相关推荐
Bigger7 小时前
Tauri(21)——窗口缩放后的”失焦惊魂”,游戏控制权丢失了
前端·macos·app
Bigger7 小时前
Tauri (20)——为什么 NSPanel 窗口不能用官方 API 全屏?
前端·macos·app
Wcowin18 小时前
Mac Shell 环境优化指南
macos·职场和发展·蓝桥杯
止礼18 小时前
FFmpeg8.0.1 Mac环境 CMake本地调试配置
macos·ffmpeg
sean90819 小时前
Colima 下 docker pull 失败自查流程
macos·docker·容器·colima
denggun123452 天前
卡顿监测原理
macos·ios·xcode
Sheffi662 天前
iOS 触摸事件完整传递链路:Hit-Test 全流程深度解析
macos·ios·cocoa
ChineHe2 天前
Gin框架入门篇002_第一个Gin服务
macos·xcode·gin
Roc.Chang2 天前
解决 macOS 26.1 The application “xxxx” can’t be opened. 问题
macos
赶路人儿2 天前
从intel mac迁移到M3后软件的兼容性
macos