Coder Social home page Coder Social logo

Comments (5)

IceCodeNew avatar IceCodeNew commented on May 24, 2024

查询无返回结果的具体表现:等待查询很久(直到超时),dig 调试可以看到如下的返回:
image


配置里日志级别已经调到 trace 级别了,但还是只能看到插件加载成功的信息和 cache 插件定期 GC 的日志。完全看不到接收查询请求,处理请求的内部逻辑等等……

from mosdns.

IrineSistiana avatar IrineSistiana commented on May 24, 2024

要是把 hosts 注释掉会怎么样?

EDIT: 没有日志就很奇怪。我拿你配置本地复现一下。

from mosdns.

IrineSistiana avatar IrineSistiana commented on May 24, 2024

没有日志应该是 mosdns 压根没有收到请求。这个很迷。我用你的配置复现了一下,能收到请求。你是在 WSL 里用的 dig ? 我印象里 WSL 好像有自己的一个 IP。不是 127.0.0.1


然后发现你的配置有个问题。

匹配器:

逻辑关系: 或。满足任意条件即为 true。

如果你这样写

  - tag: query_is_ad_domain           # 匹配广告域名的插件
    type: query_matcher
    args:
      qtype: [1, 28]  # <——- 会把全部 A AAAA 结果全部匹配进去
      domain:
        - "./geosite.dat:category-ads-all"

from mosdns.

IrineSistiana avatar IrineSistiana commented on May 24, 2024

这个配置方式感觉更直观。应该加个选项能让 matcher 能变成 与 模式。

from mosdns.

IceCodeNew avatar IceCodeNew commented on May 24, 2024

你是在 WSL 里用的 dig ? 我印象里 WSL 好像有自己的一个 IP。不是 127.0.0.1

你这么一说我也想起来了,确实是这样。谢谢提醒。

匹配器:

逻辑关系: 或。满足任意条件即为 true。

这个配置方式感觉更直观。应该加个选项能让 matcher 能变成 与 模式。

嗯,虽然在我的这个使用场景下其实用不到逻辑与,但是加上这个选项应该会有帮助。
我是看 Wiki 上加了这么多 args,先入为主以为几个条件要同时满足才会匹配上。是我没有仔细看 Wiki hhh

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.