DEV Community

How to use Unbound with AdGuard Home or Pi-hole

Anonymous on November 16, 2020

Install unbound with your package manager. I use apt so in my case I sudo apt install unbound and it is installed, it depends on your system which...
Collapse
 
fiveknive profile image
FiveKnive

Thank you for the guide! I saw that you wrote on Reddit that you should only enable DNSSEC in unbound, otherwise there may be a conflict? Is this no longer the case, or does the option in Adguard do something else?

Collapse
 
anonymous7864 profile image
Anonymous

Correct, that is no longer the case, the bug that was causing conflicts was patched out over a year ago.

Collapse
 
vansmak profile image
Vansmak

thank you for the instructions. I wonder how to do this if I use 2 different adguard home instances? My router uses the ip addresses for 2 differet pi's that run adguard. in case ones down, i installed unbound on one of those with 127.0.0.1:5335 in the adguard running on the same pi. as for the other pi with adguard, i either need another instance of unbound? or use ipadderssofpiwithunbound:5335???

Collapse
 
houmie profile image
Houman

Does this mean when a device connects to your local unbound DNS server, it is resolving it further to the AdGuard server underneath?

Collapse
 
anonymous7864 profile image
Anonymous

Other way around, this is for AdGuard Home, which is a local DNS filtering software. Your clients connect to your network and send queries to AdGuard Home to be filtered (mainly used for adblocking but can be used for blocking any domain) and AdGuard Home will then forward the allowed domains to be resolved, and they're forwarded to unbound to do so.