Coder Social home page Coder Social logo

Comments (3)

zfl9 avatar zfl9 commented on August 20, 2024

你的意思是:对于大部分客户端,不过滤AAAA;仅针对少数几个客户端(src-ip),过滤AAAA?

如果是这样,可以启动两个 chinadns-ng 进程:

  • 第一个进程,暂且叫他main,main用于服务“大部分客户端”,不过滤AAAA,开启dns缓存,其他配置同你现在的。
  • 第二个进程,监听另一个端口(不与main端口冲突就行),配置AAAA过滤,不用开DNS缓存,启动参数为 -d chn -c 127.0.0.1#main的端口(充当一个简单的 dns forwarder + AAAA filter)。然后通过iptables规则,匹配那些目标客户端(src ip),将其DNS请求redirect到当前进程的监听端口。其实就是一个简单的“DNS套娃”。

因为这种需求不是很常见,所以能简单解决就简单解决,尽量不增加对大家无用的代码。

from chinadns-ng.

Smallthing avatar Smallthing commented on August 20, 2024

好的 可以

from chinadns-ng.

zfl9 avatar zfl9 commented on August 20, 2024

那先关了。

from chinadns-ng.

Related Issues (20)

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.