跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 设置了 hosts, dig raw.githubusercontent.com 总是失败
未分類
15 11 月 2020

设置了 hosts, dig raw.githubusercontent.com 总是失败

设置了 hosts, dig raw.githubusercontent.com 总是失败

資深大佬 : CodeCore 5

总是指向本地,导致 brew 安装 openresty 总是失败:

==> Installing openresty from openresty/brew ==> Downloading https://raw.githubusercontent.com/openresty/openresty/master/patches/openssl-1.1.1f-sess_set_get_cb_yield.patch ##O#- # curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443 Error: Failed to download resource "openresty-openssl111--patch" Download failed: https://raw.githubusercontent.com/openresty/openresty/master/patches/openssl-1.1.1f-sess_set_get_cb_yield.patch 
➜  ~ dig raw.githubusercontent.com  ; <<>> DiG 9.10.6 <<>> raw.githubusercontent.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32099 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1  ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 ;; QUESTION SECTION: ;raw.githubusercontent.com. IN A  ;; ANSWER SECTION: raw.githubusercontent.com. 30 IN A 0.0.0.0  ;; Query time: 10 msec ;; SERVER: 192.168.2.1#53(192.168.2.1) ;; WHEN: Fri Nov 20 14:59:20 CST 2020 ;; MSG SIZE  rcvd: 70 
# GitHub520 Host Start 185.199.108.154               github.githubassets.com 199.232.96.133                camo.githubusercontent.com 199.232.96.133                github.map.fastly.net 199.232.69.194                github.global.ssl.fastly.net 140.82.114.3                  gist.github.com 185.199.108.153               github.io 140.82.114.4                  github.com 140.82.113.5                  api.github.com 199.232.96.133                raw.githubusercontent.com 199.232.96.133                user-images.githubusercontent.com 40.75.87.113                  favicons.githubusercontent.com 199.232.96.133                avatars5.githubusercontent.com 199.232.96.133                avatars4.githubusercontent.com 199.232.96.133                avatars3.githubusercontent.com 199.232.96.133                avatars2.githubusercontent.com 199.232.96.133                avatars1.githubusercontent.com 199.232.96.133                avatars0.githubusercontent.com 140.82.113.9                  codeload.github.com 52.216.128.147                github-cloud.s3.amazonaws.com 52.216.0.224                  github-com.s3.amazonaws.com 52.216.107.188                github-production-release-asset-2e65be.s3.amazonaws.com 52.217.1.4                    github-production-user-asset-6210df.s3.amazonaws.com 52.217.67.196                 github-production-repository-file-5c1aeb.s3.amazonaws.com # Star me GitHub url: https://github.com/521xueweihan/GitHub520 # GitHub520 Host End 

大佬有話說 (15)

  • 資深大佬 : Rheinmetal

    只能说老老实实走代理 别整这些没用的了

  • 資深大佬 : julyclyde

    dig 和 hosts 没啥关系

  • 主 資深大佬 : CodeCore

    @julyclyde 额。。。我学习下。我还以为抱这个错误是因为域名解析问题呢。

  • 資深大佬 : julyclyde

    用 curl -v 访问一下那个网址看看具体错误信息

  • 資深大佬 : scemsjyd

    https://sm.ms/image/wGobPXjQaM5fHv3
    你最好 ping 或者 curl 看一下返回的 ip 是不是正常的,还有你的 hosts 配置的 ip 可用不。

  • 資深大佬 : scemsjyd

    ![image.png]( https://i.loli.net/2020/11/20/wGobPXjQaM5fHv3.png)
    补一下图

  • 資深大佬 : lework1234

    这里有代理地址,连不上的时候可以用下`//mirrors.leops.cn/#/github`

  • 資深大佬 : ysc3839

    hosts 是系统 DNS 库处理的,dig 是使用自己的 DNS 客户端发请求,不会使用系统的,所以不受 hosts 影响。

  • 資深大佬 : lpts007

    墙现在成熟的都出口了,改个 host 对付不了它。

    希望中国教材也抓紧更新 tcp 章节:
    我们访问 github 时,三次握手之后会马上收到 rst 包体现了怎样的社会主义核心价值观?

  • 資深大佬 : Jooooooooo

    改 host 5 年前估计还可以

  • 資深大佬 : learningman

    @lpts007 我认为主要体现了和谐和法制,侧面体现了自由和平等

  • 主 資深大佬 : CodeCore

    @scemsjyd ping 可以的。

  • 主 資深大佬 : CodeCore

    @ysc3839 学习了。感谢。我尝试 ping 了可以通,我在搜搜其他方式。

  • 資深大佬 : baobao1270

    dig 不走 hosts

  • 主 資深大佬 : CodeCore

    @baobao1270 学习了。涨了波姿势。

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具