i have installed Dietpi and therefore Adguard Home with Unbound.
Everything regarding Internet DNS is working fine.
Unfortunately i can’t connect to my internal clients via DNS (for e.g. http://nucpi.fritz.box:9002/portainer)
because in this case DNS does not work.
With Pihole and Unbound this is no problem. I add the the neccessary within Pihole-Settings-DNS-Conditional Forwarding and so on,
and all internal Clients are reachable via DNS.
Can anyone advice me how to do this for Adguard/Unbound? In Adguard the field with upstream servers is
greyed out. So no chance anything to do here. Read also many advisories but no luck.
If you need to adjust upstream DNS server, have a look into /mnt/dietpi_userdata/adguardhome/dietpi-unbound.conf, as the gui is looked due to the availability of DietPi Unbound config file.
As you said edit /mnt/dietpi_userdata/adguardhome/dietpi-unbound.conf
make a new entry with your local domain that looks like , e.g
[/fritz.box/]10.1.1.1
save and restart AGH.
After that all your clients are reachable again. But only with FQDN. (server.fritz.box)
Difference to Pihole is, that with AGH you must use FQDN, with Pihole only the servername is ok (server)
means you have 2 lines inside /mnt/dietpi_userdata/adguardhome/dietpi-unbound.conf now? First line to use unbound and 2nd to use your FritzBox for local DNS resolution. Correct?
I am not* sure is this is the same problem I am having or not.
I have homeassistant installed on my RPi which has the name DietPi. To see the interface, I go to http://dietpi:8123
I have just setup AdGuard Home and Unbound and now that link no longer works. I can still get to the interface using the Pi’s IP address http://192.168.1.100:8123
Will the solution to edit dietpi-unbound.conf the right one for me also? Normally, I try things out myself first, but I don’t want to make a mistake that may bring down my network.
Since the router/DHCP server is not used for DNS resolution anymore, local hostnames need to be setup in AdGuard Home itself, alternatively in Unbound .
It’s also possible to achieve the expansion of hostnames by advertising the domain name (option 15) and the DNS search list (option 119) from the dhcp server.
Nope, DietPi is not broadcasting its hostname by default. Usually DHCP servers do so when clients provide their hostname on DHCP lease, probably this is why you thought so?
You can do conditional forwarding in Pi-hole to send local hostname resolution via router instead of upstream DNS. Not sure whether this can be done in AGH as well? Another approach would be to use the router as upstream in Pi-hole, and a remote upstream DNS with the router.
If you wish adguard/unbound to resolve hostname/ip managed by a router, the answer is:
Adguard admin interface → Settings → DNS Settings → Private reverse DNS servers: Enter the router’s IP address and Enable reverse resolving of client’s IP addresses.