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
相关推荐
梅名智5 小时前
IOS 蓝牙连接
macos·ios·cocoa
帅次19 小时前
Objective-C面向对象编程:类、对象、方法详解(保姆级教程)
flutter·macos·ios·objective-c·iphone·swift·safari
fengyun289119 小时前
fcpx音视频剪辑编辑 Final Cut Pro X(Mac电脑)
macos·mac
fengyun289120 小时前
Mac电脑 卸载工具 App Cleaner
macos
aerror1 天前
Xbox One 控制器转换为 macOS HID 设备的工作原理分析
macos·xbox
晴风向上1 天前
mac mini m4安装node.js@16以下版本方法
macos·node.js
JPCstorm1 天前
Mac homebrew 安装教程
macos
秋窗71 天前
Mac 部署Latex OCR并优化体验(打包成App并支持全局快捷键)
macos·ocr·latex
FreeBuf_1 天前
朝鲜APT组织使用Nim语言恶意软件对macOS发起隐秘Web3与加密货币攻击
macos·web3·策略模式
Digitally1 天前
如何将信息从 iPhone 同步到Mac(完整步骤和示意图)
macos·ios·iphone