Git Product home page Git Product logo

dnshookserver's Introduction

DNS Hook Server

一个基于GO的小型 DNS 解析服务器。但是对于这个应用的定位是,方便不能配置 host 的移动端设备。可以拦截特定的域名解析,使其解析到指定的 IP,所以命其名为DNS Hook。设计参考:xdns

关于 DNS 报文解析的部分,感谢: DNS 请求报文详解(上) DNS 请求报文详解(下)

Rely

$ go get github.com/imroc/biu

Usage

$ sudo go run dns.go -h                                                                                                                                   
  -dnsListPath string
    	dns hook config file path (default "./lk-dns.conf")
  -remoteDns string
    	Forwarding DNS server (default "8.8.8.8")

config

配置文件的写法基本和 host 相同。支持#注释,支持单行多域名。

#单独行注释
127.0.0.1 www.baidu.com

127.0.0.1 www.google.com #行内注释

127.0.0.1 www.google.com www.baidu.com

dnshookserver's People

Contributors

sherlozk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.