AdguardTeam / AdguardTeam/AdGuardHome

Rewrite answers matching CIDR

Aperta
#5,401 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
feature request
Lingua principale
TypeScript
Stelle
36.9k
Fork
2.5k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.