AdguardTeam / AdguardTeam/AdGuardHome

Request to Add Custom Local Domain Support for Private DNS Server

Open
#7,114 4 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
TypeScript
Stars
36.9k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

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

### The problem

In the OpenWRT system, I use AdGuard Home to replace the built-in dnsmasq for DNS resolution (AdGuard Home uses port 53, dnsmasq is changed to port 52, and AdGuard Home's Private Reverse DNS Server is set to dnsmasq's port 52). However, the DHCP service is still handled by the original dnsmasq. I have found that local arpa requests can be correctly forwarded to the local dnsmasq for local reverse lookup.

Additionally, OpenWRT has a device domain name feature, which is based on the device name combined with the local domain name in the Network-DHCP/DNS settings, with "lan" as the default. For example, if the device name is "xiaomi-14", the local domain name would be "xiaomi-14.lan". I noticed that many local devices request this local domain name in AdGuard Home, but AdGuard Home does not forward these requests to the Private Reverse DNS Server set to dnsmasq's port 52. Instead, it forwards them to an online DNS server, resulting in a large number of resolution failures with response times over 5000+ milliseconds. Additionally, Windows systems often request wpad plus the local domain name, such as the default "wpad.lan", to find the local proxy. These requests are also wrongly forwarded to the online DNS, causing high latency and no results.

### Proposed solution

Therefore, I suggest updating the Private Reverse DNS Server feature to be a Private DNS Server. Additionally, alongside the default forwarding of arpa requests, please add an input field where users can input the local domain name (such as the default "lan"). This would ensure that domain names with the suffix ".lan" are also forwarded to the private DNS server, not limited to arpa reverse queries, ensuring functional implementation and normal latency.

### Alternatives considered and additional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.