【Windows】【Mac】DNS Host Database

目录

一. 问题

二. 代码

三. 参考


一. 问题

        网络巨慢,摘录一下,后续事宜;

二. 代码

##
# 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
#
##
# Github DNS
#
#    - github.com
#    - assets-cdn.github.com
#    - github.global.ssl.fastly.net
#
# 1. the reference url: 
#   external tools(the recommend):
#       - https://www.ipaddress.com/reverse-ip-lookup
#       - https://github.com.ipaddress.com/
#       - https://github.com.ipaddress.com/assets-cdn.github.com
#       - https://fastly.net.ipaddress.com/github.global.ssl.fastly.net
#       - https://fastly.net.ipaddress.com/stackoverflow.global.ssl.fastly.net
#       - https://githubassets.com.ipaddress.com/github.githubassets.com
#       - https://githubusercontent.com.ipaddress.com/avatars.githubusercontent.com
#   internal tools:
#       - https://tool.chinaz.com/dns
#       - https://tool.chinaz.com/dns?type=1&host=github.com&ip=
#       - https://tool.chinaz.com/dns?type=1&host=assets-cdn.github.com&ip=
#       - https://tool.chinaz.com/dns?type=1&host=github.global.ssl.fastly.net&ip=
#       - https://tool.chinaz.com/dns?type=1&host=stackoverflow.global.ssl.fastly.net&ip=
#
# 2. the upgrade dns cache
#       - windows: `ipconfig /flushdns`
#       - linux:   `systemctl restart nscd`
#       - mac:     `dscacheutil -flushcache` or `sudo dscacheutil -flushcache` or
#                  `sudo killall -HUP mDNSResponder`
#
# 140.82.113.4    github.com
#
# ping -c 4 140.82.112.4
# ping -c 4 185.199.108.153
# ping -c 4 185.199.109.153
# ping -c 4 185.199.110.153
# ping -c 4 185.199.111.153
# ping -c 4 199.232.69.194
# ping -c 4 199.232.69.194 
##
#
140.82.112.4        github.com
185.199.108.153     assets-cdn.github.com
185.199.109.153     assets-cdn.github.com
185.199.110.153     assets-cdn.github.com
185.199.111.153     assets-cdn.github.com

185.199.108.154     github.githubassets.com
185.199.109.154     github.githubassets.com
185.199.110.154     github.githubassets.com
185.199.111.154     github.githubassets.com

199.232.69.194      github.global.ssl.fastly.net
199.232.69.194      stackoverflow.global.ssl.fastly.net

185.199.108.133     avatars.githubusercontent.com
185.199.109.133     avatars.githubusercontent.com
185.199.110.133     avatars.githubusercontent.com
185.199.111.133     avatars.githubusercontent.com
#
# stackoverflow.com DNS:
#
#   1. https://stackoverflow.com.ipaddress.com/
#
151.101.193.69      stackoverflow.com
151.101.65.69       stackoverflow.com
151.101.129.69      stackoverflow.com
151.101.1.69        stackoverflow.com

更新 DNS 缓存:

#
# the upgrade dns cache:
#
#   - windows: `ipconfig /flushdns`
#   - linux:   `systemctl restart nscd`
#   - mac:     `dscacheutil -flushcache` or `sudo dscacheutil -flushcache` or
#              `sudo killall -HUP mDNSResponder`

三. 参考

  1. https://www.ipaddress.com/reverse-ip-lookup
  2. https://github.com.ipaddress.com/
  3. https://github.com.ipaddress.com/assets-cdn.github.com
  4. https://fastly.net.ipaddress.com/github.global.ssl.fastly.net
  5. https://fastly.net.ipaddress.com/stackoverflow.global.ssl.fastly.net
  6. https://githubassets.com.ipaddress.com/github.githubassets.com
  7. https://githubusercontent.com.ipaddress.com/avatars.githubusercontent.com
  8. https://stackoverflow.com.ipaddress.com/
  9. https://tool.chinaz.com/dns
  10. https://tool.chinaz.com/dns?type=1&host=github.com&ip=
  11. https://tool.chinaz.com/dns?type=1&host=assets-cdn.github.com&ip=
  12. https://tool.chinaz.com/dns?type=1&host=github.global.ssl.fastly.net&ip=
  13. https://tool.chinaz.com/dns?type=1&host=stackoverflow.global.ssl.fastly.net&ip=

(完)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值