AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home.html
GNU General Public License v3.0
24.63k stars 1.78k forks source link

when nslookup , resturn result server : Unhnown #7229

Closed Poiig closed 2 weeks ago

Poiig commented 3 weeks ago

Prerequisites

Platform (OS and CPU architecture)

Windows, AMD64 (aka x86_64)

Installation

Docker

Setup

On one machine

AdGuard Home version

v0.107.52

Action

PS C:\Users\PoiigZhao> nslookup www.recloud.com.cn 10.10.10.2 服务器: UnKnown Address: 10.10.10.2

非权威应答: 名称: www.recloud.com.cn Address: 139.217.235.117

Expected result

image

when i use 218.4.4.4 to resolve dns , show servername is correct

Actual result

image

Additional information and/or screenshots

No response

tjharman commented 2 weeks ago

There is no fault here. You are still getting the DNS name resovled.

The "UnKnown" is just it doesn't have a DNS name for your 10.10.10.2 DNS server. If you add a static entry into adguard that maps 10.10.10.2 to whatever hostname you want to appear, that error will go away.

There's no fault here, however.

Poiig commented 2 weeks ago

image

I have tried this method, but it was useless.

image

tjharman commented 2 weeks ago

I'm pretty sure that Windows uses the currently configured DNS server for the 10.10.10.2 reverse lookup.

Is 10.10.10.2 currently Window's configured DNS server?

Poiig commented 2 weeks ago

image

Yes

tjharman commented 2 weeks ago

Hmm yes, I guess AdguardHome doesn't support reverse DNS lookups configured on itself. It works for me, but that's becuase my upstream DNS server is doing the reverse mapping.

Regardless, I still don't consider this a bug. AdguardHome is designed to block ads, I don't think there's a valid use-case for needing to properly answer specific reverse DNS lookups, is there (aside from the fact it reports unknown in nslookup)

Poiig commented 2 weeks ago

Yes, I also don't think it's a bug. But as an optimization item, we hope to support it in the future. SmartDns seems to have this feature.