AdguardTeam / AdguardTeam/AdGuardHome

Rewrite answers matching CIDR

オープン
#5,401 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
feature request
主要言語
TypeScript
スター
36.9k
フォーク
2.5k
PR マージ指標
30日以内にマージされた PR はありません

説明

### Prerequisites

- [X] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions) and found no answer

- [X] I have searched other issues and found no duplicates

- [X] I want to request a feature or enhancement and not ask a question

### Description

#### What problem are you trying to solve?
Hi, in some kind of Private Network and CDN use cases, we always want to use the routing server address or the best CDN address, so I think maybe we can define a CIDR rule, and rewrite all domains matching the rule to the routing server or the best CDN edge server.

#### Proposed solution
Add a new type like `CIDR` to [`dnstype`](https://github.com/AdguardTeam/AdGuardHome/wiki/Hosts-Blocklists#dnstype), allow user to rewrite all domains matching the given CIDR. That will look like this:

```
10.0.0.0/8$dnstype=CIDR,dnsrewrite=NOERROR;A;10.0.0.1
```

#### Alternatives considered
Add a new additional rewrite option to DNS rewrites.

#### Additional information
If AdGuardHome already have this feature, please tell me how I can do this, thanks.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。