Giter Site home page Giter Site logo

mosdns-container's Introduction

mosdns

mosdns

一个插件化的 DNS 转发/分流器。

项目地址: github.com/IrineSistiana/mosdns

Dockerfile: github.com/Sagit-chu/mosdns-container

支持的平台

  • linux/amd64
  • linux/arm/v7
  • linux/arm64

关于镜像

镜像基于 alpine:latest。包含 mosdns 和,TLS 需要的 ca 根证书包,配置文件,geoip.dat,geosite.dat。

配置文件在github.com/Sagit-chu/mosdns-container

流程:

  • cn 域名 -> 国内上游dot doh 返回是国内 ip -> 返回结果,结束. 不是国内 ip 继续下一步.
  • 非 cn 域名 -> 无污染dot doh上游 返回非国内 ip ? -> 返回结果,结束. 返回国内 ip 继续下一步.
  • 其他所有情况,优先无污染上游结果,否则国内上游结果.

geoip.dat,geosite.dat会随着镜像更新(挂载配置文件夹dat文件也会随着镜像更新)

启动容器

docker run -d --name mosdns -p 5454:53/udp -p 5454:53/tcp  sagit.io/601096721/mosdns:latest

因为容器已经包含了配置文件,所以可以不映射/etc/mosdns,如果需要修改配置文件可以映射配置目录。

mosdns-container's People

Contributors

sagit-chu avatar github-actions[bot] avatar renovate-bot avatar mjyhj avatar renovate[bot] 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.