AdguardTeam / AdguardTeam/AdGuardHome

Built in DHCP Server is giving wrong DNS Server to requesting clients

未关闭
#3,203 6 条评论 0 个 reaction 已指派 1 人 已被 @ainar-g 认领 在 GitHub 查看
needs investigation
主要语言
TypeScript
星标
36.9k
派生
2.5k
PR 合并指标
30 天内没有已合并 PR

描述

I have found an error. I have enabled the DHCP server and have ipv6 addresses assigned from fd00::2 to ff. My raspberry has

a private ip(v4) adress like 192.168.x.x
and also a fd00 ipv6 adress
and also a fe80 adress
and also an public 2003:: adress with a given prefix from the internet router/gateway.

Till here the build in DHCP Server is working fine and giving ipv6 IPs ranged from fd00:2 to ff to asking clients. The DHCP Server also gives the its own DNS adresses to the requesting clients.

But now I limited the AdGuard DNS Server to listen only at 192.168.x.2 and fd00::2. Because I don't want it to listen for dns queries at the public reachable 2003:x.x... and the link local fe80 adresses. This is done in AdGuardHome.yaml like that:

'dns:
' - 192.168.178.2
' - fd00:2
That works fine and in the webIf at the tab "Setup Guide" I see also, that adguard home's dns server is working now only with that ip adresses, like you see in my attached screenshot:
![adguard](https://user-images.githubusercontent.com/15341787/120060875-91c30980-c05a-11eb-88a6-569e56e7dc99.png)

But now the problem is, that the DHCP Server is still giving the other adresses to the requesting clients. So the clients getting additionaly that public 2003:: and that fe80: adresses. I think that is wrong and the build in dhcp server should only give the 2 adresses the dns is limited to via config.
Because of this, it happens that clients have now wrong DNS server adresses. What is causing dns timeouts at clients and a not working internet.
How can I make that build in dhcp server to give only that 2 adresses to clients?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。