AdguardTeam / AdguardTeam/AdGuardHome

Rewrite answers matching CIDR

Ouverte
#5,401 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
feature request
Langage dominant
TypeScript
Étoiles
36.9k
Forks
2.5k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.