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

能否添加指定域名和子域名指向一个ip #8

Closed
weargle opened this issue Apr 11, 2020 · 4 comments
Closed

能否添加指定域名和子域名指向一个ip #8

weargle opened this issue Apr 11, 2020 · 4 comments

Comments

@weargle
Copy link

weargle commented Apr 11, 2020

能不能添加一个匹配域名和子域名指向一个ip这样的功能,例如格式127.0.0.1 sska.com,不仅sska.com指向127.0.0.1这个ip,cc.sska.com和ss.sska.com等等这样的子域名也指向127.0.0.1,这样在广告屏蔽的时候对于某些网站整个域名屏蔽掉。

@wolf-joe
Copy link
Owner

我在最新的commit中加入了新feature:当没有上游dns返回响应时,ts-dns会提供空响应,预计明天或后天发布release包。比如在配置文件中添加如下内容:

  [groups.blocked]
  rules = ["sska.com"]

此时dig cc.sska.com会出现如下结果:

;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62014
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;cc.sska.com.                   IN      A

更完善的feat(比如泛域名hosts)会在今后的版本逐渐实现。

@weargle
Copy link
Author

weargle commented Apr 12, 2020

好的

@weargle weargle closed this as completed Apr 12, 2020
@wolf-joe
Copy link
Owner

v0.10.1已发布

@wolf-joe
Copy link
Owner

v0.12.0发布,支持通配符hosts

@wolf-joe wolf-joe mentioned this issue Apr 21, 2020
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