Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置网站的IP地址到hosts中 #136

Open
Qingquan-Li opened this issue Nov 27, 2019 · 0 comments
Open

配置网站的IP地址到hosts中 #136

Qingquan-Li opened this issue Nov 27, 2019 · 0 comments
Labels

Comments

@Qingquan-Li
Copy link
Owner

应用场景:网站原来的 IP 地址无效或被封了。

实例:配置网址 github.com 的 IP 地址到本机的 hosts 文件中。

# 查看网址 github.com 当前的 IP 地址
$ nslookup github.com
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
Name:	github.com
Address: 13.250.177.223

https://github.com.ipaddress.com 中查看到 github.com 的 IPv4 Addresses 为 140.82.114.4 ,将其配置在本机的 hosts 文件中:

$ sudo vim /etc/hosts
# 添加:140.82.114.4	github.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant