GithubHelp home page GithubHelp logo

supertanglang / gfw_dns_resolver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from examplecode/gfw_dns_resolver

0.0 1.0 0.0 264 KB

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

Java 44.92% C 55.08%

gfw_dns_resolver's Introduction

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

gfw_dns_resolver's People

Contributors

ma-zz-xth-zz-on avatar xuchunyang avatar examplecode avatar ihacku avatar

Watchers

James Cloos avatar

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.