Skip to content

About

This is a tool used to prevent GFW DNS poisoning and return to the correct ip

Resources

Stars

245 stars

Watchers

19 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

GFWDnsResolver: 获取GFW DNS域名污染的真实IP的小工具

阅读github pages 版本

以前写的小工具,最近整理代码,再这里公布出来。这个小工具用于获取被gfw dns 污染域名的真实ip地址,通常可以用于获取twitter,youtube,facebook等网址的真实ip地址。如果你的某些程序需要绕过GFW DNS污染也许这些代码片断会用的上,分别提供了c语言和java的实现版本。

C 语言版本

编译

gcc -o gfw_dns_resolver  gfw_dns_resolver.c 

编译输出调试信息版本

gcc -o gfw_dns_resolver -DDEBUG gfw_dns_resolver.c 

运行示例

./gfw_dns_resolver www.twitter.com

输出:

The real ip is: 199.59.149.230

JAVA 版本

编译

javac GFWDnsResolver.java

运行示例

java GFWDnsResolver www.youtube.com

输出:

host:www.youtube.com The real ip is:173.194.72.102

About

This is a tool used to prevent GFW DNS poisoning and return to the correct ip

Resources

Stars

245 stars

Watchers

19 watching

Forks

Releases

Packages

Contributors

Languages