AdguardTeam / AdguardTeam/AdGuardHome

DNS resolution speed issue with local hosts files

Abierto
#6,165 10 comentarios 0 reacciones 1 asignado Reclamado por @EugeneOne1 Ver en GitHub
needs investigation waiting for data
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/categories/q-a) and found no answer

- [X] I have searched other issues and found no duplicates

- [X] I want to report a bug and not [ask a question or ask for help](https://github.com/AdguardTeam/AdGuardHome/discussions/categories/q-a)

- [X] I have set up AdGuard Home correctly and [configured clients to use it](https://github.com/AdguardTeam/AdGuardHome/wiki/Clients). (Use the [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions/categories/q-a) for help with installing and configuring clients.)

### Platform (OS and CPU architecture)

Linux, ARM64

### Installation

Custom package (OpenWrt, HomeAssistant, etc; please mention in the description)

### Setup

On one machine

### AdGuard Home version

v0.107.36

### Action

In my DNS resolution log, I noticed that the resolution speed of rewritten items from the hosts file is not normal, and they appear too slow

I correspond the device names in my domain to the IP addresses through the hosts file of this Gateway

In my /etc/hosts, there are approximately over 30 records, and file size is 1.5KB

### Expected result

I think the DNS resolution speed of hosts files should be like this, or even faster than them

![image](https://github.com/AdguardTeam/AdGuardHome/assets/26044744/f52a10e4-e39d-4b91-a89d-7d321ff0fdc2)

### Actual result

But the actual parsing speed is very slow, with an average of over 100ms or even higher (毫秒=ms)

![image](https://github.com/AdguardTeam/AdGuardHome/assets/26044744/ff8ceadc-5cbc-4edc-a257-80ebb16e9bdc)

### Additional information and/or screenshots

This issue has a lower priority as the impact is not actually felt

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.