AdguardTeam / AdguardTeam/AdGuardHome

Rewrite answers matching CIDR

Abierto
#5,401 4 comentarios 0 reacciones 0 asignados Ver en GitHub
feature request
Lenguaje dominante
TypeScript
Estrellas
36.9k
Forks
2.5k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.