Git Product home page Git Product logo

go-minidns's Introduction

go-minidns

一个DNS中转服务端,支持自定义域名和IP

用法

假设你编译好的执行文件叫main
./main 114.114.114.114
程序就会监听本机53端口并将所有请求转发到114.114.114.114这个DNS

自定义域名IP

在程序所在的目录下建一个host2ip.txt,里面写入规则,格式是域名+空格+IP,比如
www.crabx.com 127.0.0.1
这样用户尝试解析www.crabx.com就会得到127.0.0.1

可以多行

也可以用正则表达式,例如
(.*).crabx.com 127.0.0.1

说明

有什么需求或者问题可以提issue。

go-minidns's People

Contributors

crabkun avatar xieyuhua avatar

Watchers

 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.