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

[Other] 配置文件中找不到可以配置 DNSJava 的 DNS 服务器地址的区域以及相关提问 #913

Open
4 of 5 tasks
gsxgmpkt9020 opened this issue Jan 16, 2025 · 2 comments

Comments

@gsxgmpkt9020
Copy link

问题描述 - Issue Description

# DNSJava DNS 解析
# 在部分功能模块中使用 [dnsjava/dnsjava](https://github.com/dnsjava/dnsjava) 替代 JDK 默认的 DNS 解析器,以提供更可靠的主机名和反向 DNS 查询能力,并支持自定义 DNS 服务器和负载均衡的能力。DNSJava 仅在部分功能上工作(如 DNS 反查),其它功能将继续使用 JDK DNS。  
# 启用此实验后,您可以在配置文件中配置 DNSJava 的 DNS 服务器地址。
dnsjava: true

然后config.yml根本找不到 “DNS 服务器地址”配置的区域,

只有一个

lookup:
  # 启用 DNS 反查,能够通过 IP 反查域名,但可能增加你所使用 DNS 服务器的压力,并可能导致 DNS 服务器对你采取降低服务质量的措施
  # Enable reverse DNS lookup for IPs, however it will increase your DNS server payload, and DNS server may block your access if too many quires sent to them server.
  dns-reverse-lookup: true

而且文档什么都没有提,一笔带过:https://docs.pbh-btn.com/docs/module/ptr#%E5%90%AF%E7%94%A8-dnsjava

额外信息 - Addition Information

No response

检查清单 - Check list

  • 这不是一个错误 (BUG) (This is not an bug/error)
  • PeerBanHelper 已更新到最新版本,非最新版本不接受任何错误反馈,任何非最新版本的 Issue 将被 立 刻 关 闭,不会有人给您提供任何支持 (I'm running the latest version of PBH that can be found in Github Relases, non-latest release won't receive any support)
  • 我已检查过 PBH 文档(特别是常见问题),且即使使用了搜索也没有找到与此有关的内容 (This not a question/or the question that not listed in README's FAQ or PBH WIKI)
  • 我没有检查这个检查清单,只是闭眼选中了所有的复选框,请关闭这个 Issue (I have not read these checkboxes and therefore I just ticked them all, Please close this issue)
  • 我同意遵守 PBH-BTN 包容性条约,不发布 “嘲讽、骂战、引战、开盒(有时也称为人肉搜索)、人身攻击、仇恨、暴力、侮辱性言辞、违法违规、黑灰产、危害国家安全、实施或帮助他人实施电信犯罪” 等内容。并已知晓如果仍旧发布了这些内容,我的账号将立刻从包括但不限于 PBH-BTN 组织、社交软件中封禁。所有主题、内容都将被立刻删除或折叠,撤销、删除和收回您所做出的一切贡献,并封禁 BTN 网络的中账号权限、排除您所提交的所有数据。在您违反相关规则时,PBH-BTN 将会将您的注册、登录、和最近访问的 IP 地址、电子邮件地址、以及其它可能追踪您或将您去匿名化的信息从定期删除转为永不删除,并在任何国家或地区的政府、公安机关或有关部门需要时无通知的提供这些数据。 (I agree to abide by the PBH-BTN Inclusivity Pact by not posting content such as “taunting, name-calling, war-mongering, open-boxing (sometimes referred to as mansplaining), personal attacks, hatred, violence, insulting language, illegal activities, black and grey business, endangering national security, and committing or assisting others in committing telecommunication crimes”. I am aware that if I continue to post such content, my account will be immediately banned from organizations including but not limited to PBH-BTN, social software. All topics and content will be immediately deleted or collapsed, all contributions will be revoked, deleted and retracted, and you will be banned from the BTN network and all data you have submitted will be excluded. In the event of a violation of these rules, PBH-BTN will delete your registration, login, and most recent IP address, email address, and any other information that may be used to track you or de-anonymize you from regular to permanent deletion, and will make this data available to the government, public security, or other relevant authorities without notice if they request it, no matter what country or region.)
@gsxgmpkt9020
Copy link
Author

顺便问下,

  1. 如果开启前,封禁列表中有400个ip,是否开启后系统就会尝试通过DNS服务器解析它们绑定的域名?
  2. 成功把部分IP解析为域名后,是否会自动添加到DNS 反向解析封禁规则中?
  3. 未来能否添加反查的延时和间隔,来缓解服务器压力?
  4. 这里的DNS服务器能用自建的本地adguardhome之类的吗?

@gsxgmpkt9020 gsxgmpkt9020 changed the title [Other] 配置文件中找不到可以配置 DNSJava 的 DNS 服务器地址的区域 [Other] 配置文件中找不到可以配置 DNSJava 的 DNS 服务器地址的区域以及相关提问 Jan 16, 2025
@Ghost-chu
Copy link
Collaborator

Ghost-chu commented Jan 16, 2025

然后config.yml根本找不到 “DNS 服务器地址”配置的区域

感谢反馈,之前开发过程中是有这个功能的,但是和前端意见不一致,所以后面砍了自定义 DNS 功能,现在强制使用系统 DNS

如果开启前,封禁列表中有400个ip,是否开启后系统就会尝试通过DNS服务器解析它们绑定的域名?

是的。

未来能否添加反查的延时和间隔,来缓解服务器压力?

砍掉之前是支持负载均衡的。

这里的DNS服务器能用自建的本地adguardhome之类的吗

现在应该是不能自定义的,系统定义的是什么就是什么。

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

2 participants