Giter Site home page Giter Site logo

dowsdns's Introduction

dowsDNS

快速翻越**防火墙 ----- 仅支持Linux/Windows/Mac

Linux ----- 已测试 ubuntu 16.04 python 测试版本 3.5

本机使用

更改 DNS 域名服务器

  1. 将 conf/config.json 中的 Local_dns_server 的值改为电脑的 127.0.0.1
  2. 在 /etc/resolvconf/resolv.conf.d/base 里添加 nameserver 127.0.0.1
  3. sudo resolvconf -u
  4. sudo systemctl restart network-manager.service

启动

  • sudo ./start.py

更新

  • ./update.py

局域网共享使用

  1. 将 conf/config.json 中的 Local_dns_server 的值改为电脑的 ip
  2. firewall-cmd –add-port=53/udp     –permanent
  3. sudo ./start.py
  4. 同一局域网下,把其他设备 DNS 改为 运行程序的电脑本地 IP 即可

通用方法

  1. 将 conf/config.json 中的 Local_dns_server 的值改为电脑的 0.0.0.0
  2. firewall-cmd –add-port=53/udp     –permanent
  3. 在 /etc/NetworkManager/NetworkManager.conf 中的 dns=dnsmasq 前面加 #
  4. 在 /etc/resolvconf/resolv.conf.d/base 里添加 nameserver 127.0.0.1
  5. sudo resolvconf -u
  6. sudo systemctl restart network-manager.service
  7. 重启电脑
  8. 同一局域网下,把其他设备或本机的 DNS 改为 运行程序的电脑本地 IP 即可

Mac ---- 未测试 --- 欢迎有测试的同学提意见

  1. sudo ./start.py
  2. 将DNS服务器改为 127.0.0.1
  3. 重启网络服务和浏览器即可
  • 更新hosts:./update.py

Windows ---- 已测试 --- xp -- python 3.4

启动

  1. 将命令行切换到当前目录
  2. python start.py

更新

  • python update.py

数据引用

更多请参阅

dowsdns's People

Contributors

downature avatar panxuebai-patsnap 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.