Coder Social home page Coder Social logo

Comments (5)

IrineSistiana avatar IrineSistiana commented on May 23, 2024 1

debug 的时候我是用 grep,感觉还行。

from mosdns.

IrineSistiana avatar IrineSistiana commented on May 23, 2024

不想搞这么复杂, debug 日志能看就行。

格式化日志输出是 DNS 服务器的功能。mosdns 是转发器。

from mosdns.

terrytw avatar terrytw commented on May 23, 2024

有一个变通方法,单独开一个mosdns的实例放在别的端口上,用iptables把源IP的dns请求全部转发到该端口上,这样日志就只记录这个客户端的请求了

from mosdns.

IrineSistiana avatar IrineSistiana commented on May 23, 2024

为啥要记录客户端的请求?🤔

from mosdns.

terrytw avatar terrytw commented on May 23, 2024

他是干啥的我不知道
我有次想对几个域名单独debug,如果直接在现有的mosdns上开debug,内网的电脑NAS手机PAD加一起的DNS请求刷屏太严重了
后来单独开了一个端口专门做这个
如果有个单独debug模式会方便些,比如
./mosdns -c config.yaml -dir2exe -debug "www.example.com"可以输出该域名在路由和pipeline里面的走向和结果
当然现在这个办法也可以用

from mosdns.

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.