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
相关推荐
sysinside2 小时前
macOS Tahoe 26.4.1 (25E253) 正式版 ISO、IPSW、PKG 下载
macos·tahoe
遥不可及zzz2 小时前
[特殊字符] Android AAB 一键安装工具配置指南
android·macos
踏着七彩祥云的小丑1 天前
Mac——已安装工具查找
macos
小红的布丁1 天前
公网 IP、私网 IP、路由表、转发表与 MAC 地址的关系
tcp/ip·macos·智能路由器
Lecxcy_Kastreain1 天前
如何自适应 MacOS
macos
简单点了1 天前
mac安装node环境
macos
简单点了1 天前
mac安装vm装win11虚拟机
macos
todoitbo1 天前
装了 QClaw 之后,我卸掉了好几个 Mac 软件
人工智能·macos·ai·软件·openclaw·qclaw
總鑽風2 天前
搭建Spring Boot + ELK日志平台,实现可视化日志监控
spring boot·elk·macos
CS创新实验室2 天前
《计算机网络》深入学:IP地址 VS. MAC地址
tcp/ip·计算机网络·macos