Adguardhome: Local Domains like NAS are not resolved

Created on 15 Oct 2020  Â·  16Comments  Â·  Source: AdguardTeam/AdGuardHome

  • Version of AdGuard Home server:
    (0.103.3)
  • How did you setup DNS configuration:
    (IP of the Raspberry is in my local Router. Raspberry is host for AGH)
  • If it's a router or IoT, please write device model:
    (Raspberry Pi 3 Model B)
  • Operating system and version:
    (latest rasbian for Pi3 )

Expected Behavior

Have a local Synology Nas. I want to open it with http://myNAS

Actual Behavior

Can just open it with the IP http://192.168.188.21

Additional Information

Tried so far:

  • added to /etc/hosts on the raspberry
    192.168.188.21 myNAS

I have tried that https://github.com/AdguardTeam/AdGuardHome/issues/694 and that https://github.com/AdguardTeam/AdGuardHome/issues/461
Both dont work.
image

question

All 16 comments

add a local resolver (your router for example) for your internal domain:
upstream

or add a rewrite:
rewrite

@phixion thank you for your reply.
Tried the DNS rewrite with
myNAS and the IP. Does not work.

You have the suffix .yourdomain.com

Does that have any reason? In my NAT is no domain.

edit:
tried nslookup myNAS

Result

Server: 127.0.0.53
Address: 127.0.0.53#53
** server can't find myNAS: SERVFAIL

Try rewrite If you dont use a domain

Try rewrite If you dont use a domain

I dont understand what to do.
Thx in advance

  1. Clean you custom filtering rules
  2. Add a DNS rewrite - mynas (lower case) and 192.168.188.21
  3. It should work. If it's no, please show the output of the nslookup mynas command

@ameshkov

Added custom filter rule as proposed:

  1. nslookup mynas in terminal on raspberry

Server: 127.0.0.1
Address: 127.0.0.1#53

Non-authoritative answer:
* Can't find mynas: No answer

  1. nslookup mynas in terminal from my linux laptop locally
    >Server: 127.0.0.53
    Address: 127.0.0.53#53
    >
    >** server can't find mynas: SERVFAIL

It is not working.
I also have cleaned up my /etc/hosts because i had there names for resolving clients in local network.

127.0.0.1#53 -- do you have AdGuard Home running there or is it some other tool?

Do you see this query in AGH query log?

Yes I have adguard home running on a raspberry.
The ip of the pi is dns server in my router.

No, no other tool. Just some osx/iOS and Linux clients.

No I see that in terminal ssh session

Am 20.10.2020 um 00:56 schrieb Andrey Meshkov notifications@github.com:


127.0.0.1#53 -- do you have AdGuard Home running there or is it some other tool?

Do you see this query in AGH query log?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Could you please examine the query log and check if you see this mynas query there?

I am not able to reproduce this issue on my side. I see 2 options:

  1. You aren't querying AGH (if you can't find your mynas query in the log - that's it)
  2. Something is wrong with the DNS rewrite you added (plz show me a screenshot of your DNS rewrites settings)

Hi, first i had mynas just as synonym. Real name of the NAS is "monster" :+1:

The the incident:

I have checked the query log and just see calls from my computer.
Some seconds before i tried to open my NAS by name, not IP: http:\\monster:8181

image

to your first point 1:
I can find monster, but with the suffix .fritz.box

to your second point 2:
image

I can find monster, but with the suffix .fritz.box

Weird. fritz.box most likely is the "search" domain.
Just in case, try adding monster.fritz.box and see if it helps.

Unbelievable @ameshkov but with monster.fritz.box everything is working

I dont understand it but its working :) Great thx

I dont want to overcomplicate this but adding these two to your upstream DNS should allow you to leave out the FQDN and go by the hostname:

[/fritz.box/]192.168.188.1
[/188.168.192.in-addr.arpa/]192.168.188.1

I am assuming here that your fritz router has the IP 192.168.188.1 and that your fritz router is the DHCP server of your network.

I did thank you :+1:
So with adding that to the upstream DNS i could leve out the .fritz.box from the rewrite setting :)

Awesome!

Your support was amazing

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ammnt picture ammnt  Â·  4Comments

Iconology picture Iconology  Â·  3Comments

xenio picture xenio  Â·  4Comments

sosp picture sosp  Â·  3Comments

AnthonyBe picture AnthonyBe  Â·  3Comments