Code Monkey home page Code Monkey logo

githubhosts's Introduction

目的

自动获取Github.com下的域名对应解析到的IP,针对国内用户解决无法正常访问Github的问题

思路

参考文章:https://51.ruyo.net/17580.html

源码

使用Golang编写,第一次用golang写一些小东西。有不对的地方请大佬们指点!

运行

#本地需要安装golang环境
go run .\doit.go

Windows 可直接运行 github_hosts.exe

Linux 可直接运行 github_hosts

HOSTS

####################Github Start####################
140.82.114.25			alive.github.com
140.82.114.25			live.github.com
185.199.108.154			github.githubassets.com
140.82.114.21			central.github.com
185.199.108.133			desktop.githubusercontent.com
185.199.108.153			assets-cdn.github.com
185.199.108.133			camo.githubusercontent.com
185.199.108.133			github.map.fastly.net
199.232.69.194			github.global.ssl.fastly.net
140.82.113.4			gist.github.com
185.199.108.153			github.io
140.82.112.4			github.com
192.0.66.2			github.blog
140.82.113.6			api.github.com
185.199.108.133			raw.githubusercontent.com
185.199.108.133			user-images.githubusercontent.com
185.199.108.133			favicons.githubusercontent.com
185.199.108.133			avatars5.githubusercontent.com
185.199.108.133			avatars4.githubusercontent.com
185.199.108.133			avatars3.githubusercontent.com
185.199.108.133			avatars2.githubusercontent.com
185.199.108.133			avatars1.githubusercontent.com
185.199.108.133			avatars0.githubusercontent.com
185.199.108.133			avatars.githubusercontent.com
140.82.113.10			codeload.github.com
52.217.225.81			github-cloud.s3.amazonaws.com
52.216.100.147			github-com.s3.amazonaws.com
52.217.105.68			github-production-release-asset-2e65be.s3.amazonaws.com
52.217.0.220			github-production-user-asset-6210df.s3.amazonaws.com
52.216.241.132			github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.108.153			githubstatus.com
64.71.144.211			github.community
23.100.27.125			github.dev
185.199.108.133			media.githubusercontent.com
# Last Update Time : 2022-05-14 18:01:34 
# Github: https://github.com/malaohu/GitHubHosts 
# Article: https://51.ruyo.net/17580.html 
####################Github End####################

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.