AdguardTeam / AdguardTeam/AdGuardHome

DNS resolution speed issue with local hosts files

Đang mở
#6,165 10 bình luận 0 reaction 1 người được giao Được @EugeneOne1 nhận Xem trên GitHub
needs investigation waiting for data
Ngôn ngữ chính
TypeScript
Star
36.9k
Fork
2.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.