AdguardTeam / AdguardTeam/AdGuardHome

Add an option to disable caching of NXDOMAIN responses

Abierto
#6,497 5 comentarios 16 reacciones 1 asignado Asignado a @Chinaski1 Ver en GitHub
feature request P2: High Priority: P3
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

### The problem

I have Adguard configured to forward lookups of internal domain names to the router dns server with this rules:

````
[/internal.public.tld/]192.168.128.1
[/128.168.192.in-addr.arpa/]192.168.128.1
[//]192.168.128.1
[/in-addr.arpa/]192.168.128.1
[/ip6.arpa/]192.168.128.1
````

The router's dnsmasq server is setup to advertise this internal.public.tld to local dhcp clients.
This internal subdomain does not exist in the public dns but public.tld does, I think this is whats called split horizon dns.
When ADGH receives queries for this subdomain it correctly forwards them to the routers ip.
When the routers ip is not available (restarted for example), ADGH forwards this queries to upstream dns servers.
This probably should not happen, but maybe its a misconfiguration from my setup.
This queries en up in a NXDOMAIN response as they should be.
This response is stored in the cache.
When router dns server is available again, the queries for this internal subdomain are still answered from the cache, which in turn results in NXDOMAIN responses, presumably til the TTL for the cache entries expires.

### Proposed solution

Add an option to disable caching of NXDOMAIN responses

### Alternatives considered and additional information

Add a filter to disable any forwarding for a defined internal subdomain

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.