AdguardTeam / AdguardTeam/AdGuardHome
Rewrite answers matching CIDR
- Vorherrschende Sprache
- TypeScript
- Sterne
- 36.9k
- Forks
- 2.5k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### 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.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.