Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] 丢弃resp_ip中指定的IP #788

Open
likevi9528 opened this issue Jan 13, 2024 Discussed in #780 · 0 comments
Open

[Feature request] 丢弃resp_ip中指定的IP #788

likevi9528 opened this issue Jan 13, 2024 Discussed in #780 · 0 comments

Comments

@likevi9528
Copy link

Discussed in #780

Originally posted by likevi9528 January 2, 2024
现有一个域名,经过国内外DNS解析会获得三个返回IP,但是其中有一个在国内访问不了(通过itdog和本地测出来)。有没有什么方法可以去掉这个IP。
我现在只能使用hosts解决这个问题,有没有什么方法只需要更新blackIpList,就会自动在resp_ip中去除blackIpList中的IP。
我的想法是下面的方式,但会导致返回空的IP,请求添加此功能。

  • tag: black_ipList
    type: "ip_set"
    args:
    files:
    - "./rules/custom_black_ipList.txt"

  • tag: world_resolve
    type: "sequence"
    args:

    • exec: $world_DNS
      - matches: "resp_ip $black_ipList"
      exec: drop_resp
    • exec: query_summary world_DNS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant