I’ve recently installed Adguard and Unbound in two docker containers (network_mode=host). The only thing is that I know with pi-hole we need to input 127.0.0.1 as the DNS in dietpi-config. i’ve done the same with my installation using adguard and unbound however the internet works on every device connected to the IP assigned to the Rpi that runes adguard and unbound BUT not on the raspberry pi. The raspberry pi itself cannot do any ping requests or apt-update or action that require internet connection.
Why are you running AdGuard and Unbound on Docker? There is no need at all. Unbound is available as software package on DietPi and AdGuard can be installed quite easily. As well on the server hosting Unbound + AdBlock I would set DNS to a global one and not to 127.0.0.1. Because what happen if Docker or your AdBlock is failing? In this case you will not be able to reinstall or update packages.
Why docker, because if something fails it’s easier to manage and reinstall while making sure all directories previously used are cleaned.
Would setting a global DNS such as 22.214.171.124 in dietpi-config not defeat the purpose of using adguard and unbound? Would it not need to be 127.0.0.1 (even perhaps add port on which unbound runs on) like when running pi-hole?
I thought that the DNS in dietpi-config had to be the one of unbound or localhost to make sure that adguard use unbound and all traffic from the raspberry pi hosting pi hole and unbound go through adguard and unbound ?